mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -92,7 +92,7 @@ static Standard_Integer save (Draw_Interpretor& theDI,
|
||||
|
||||
const char* aName = theArgVec[2];
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (aName, std::ios::out);
|
||||
std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (aName, std::ios::out);
|
||||
aStream->precision (15);
|
||||
if (aStream.get() == NULL || !aStream->good())
|
||||
{
|
||||
@@ -145,7 +145,7 @@ static Standard_Integer restore (Draw_Interpretor& theDI,
|
||||
const char* aVarName = theArgVec[2];
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
|
||||
std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
|
||||
if (aStream.get() == NULL)
|
||||
{
|
||||
theDI << "Error: cannot open file for reading: '" << aFileName << "'";
|
||||
|
Reference in New Issue
Block a user