X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBinTools%2FBinTools.cxx;h=e44cf8fee9bd368e5439b55e521f8e42982303ae;hb=fb0b05319f52b12ba581e70f561234fe582c3dc3;hpb=935069d23d65b866e9cfb017c91163a0adee496a diff --git a/src/BinTools/BinTools.cxx b/src/BinTools/BinTools.cxx index 8a6ed5a83a..e44cf8fee9 100644 --- a/src/BinTools/BinTools.cxx +++ b/src/BinTools/BinTools.cxx @@ -184,7 +184,7 @@ Standard_Boolean BinTools::Write (const TopoDS_Shape& theShape, const Standard_C Standard_Boolean BinTools::Read (TopoDS_Shape& theShape, const Standard_CString theFile) { filebuf aBuf; - OSD_OpenFileBuf (aBuf, theFile, ios::in | ios::binary); + OSD_OpenStream (aBuf, theFile, ios::in | ios::binary); if (!aBuf.is_open()) return Standard_False;