From 0708fbbba91bcc619d82f07cd5798306c6b6ffa6 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 20 Aug 2009 12:34:22 +0100 Subject: [PATCH] reference to temporary --- src/surfMesh/surfaceFormats/stl/STLsurfaceFormatCore.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatCore.C b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatCore.C index 887fed0fd9..a089b502e3 100644 --- a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatCore.C +++ b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatCore.C @@ -48,7 +48,8 @@ int Foam::fileFormats::STLsurfaceFormatCore::detectBINARY { off_t dataFileSize = Foam::fileSize(filename); - istream& is = IFstream(filename, IOstream::BINARY)().stdStream(); + IFstream str(filename, IOstream::BINARY); + istream& is = str().stdStream(); // Read the STL header char header[headerSize];