mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 12:07:41 +08:00
0032352: Coding Rules - clean up code from compatibility hacks with pre-C++11 compilers
Removed usage of std::auto_ptr. opencascade::std workarounds for VS2008 have been dropped, when possible. OCCT_NO_RVALUE_REFERENCE workaround for VS2008 has been removed.
This commit is contained in:
@@ -99,7 +99,7 @@ Standard_Boolean StepSelect_WorkLibrary::WriteFile
|
||||
if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::trunc);
|
||||
std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::trunc);
|
||||
|
||||
if (aStream.get() == NULL) {
|
||||
ctx.CCheck(0)->AddFail("Step File could not be created");
|
||||
|
||||
Reference in New Issue
Block a user