mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03: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:
@@ -638,7 +638,7 @@ static Standard_Integer VListMaterials (Draw_Interpretor& theDI,
|
||||
};
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::ostream> aMatFile, anObjFile, aHtmlFile;
|
||||
std::shared_ptr<std::ostream> aMatFile, anObjFile, aHtmlFile;
|
||||
if (aDumpFile.EndsWith (".obj")
|
||||
|| aDumpFile.EndsWith (".mtl"))
|
||||
{
|
||||
@@ -894,7 +894,7 @@ static Standard_Integer VListColors (Draw_Interpretor& theDI,
|
||||
}
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::ostream> aHtmlFile;
|
||||
std::shared_ptr<std::ostream> aHtmlFile;
|
||||
TCollection_AsciiString aFileNameBase, aFolder;
|
||||
if (aDumpFile.EndsWith (".htm")
|
||||
|| aDumpFile.EndsWith (".html"))
|
||||
@@ -1088,7 +1088,7 @@ static Standard_Integer VGenEnvLUT (Draw_Interpretor&,
|
||||
}
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::ostream> aFile = aFileSystem->OpenOStream (aFilePath, std::ios::out | std::ios::trunc);
|
||||
std::shared_ptr<std::ostream> aFile = aFileSystem->OpenOStream (aFilePath, std::ios::out | std::ios::trunc);
|
||||
|
||||
if (aFile.get() == NULL || !aFile->good())
|
||||
{
|
||||
|
Reference in New Issue
Block a user