Commit 0708fbbb authored by mattijs's avatar mattijs
Browse files

reference to temporary

parent 46419a59
......@@ -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];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment