reference to temporary
This commit is contained in:
parent
46419a5917
commit
0708fbbba9
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user