mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine". The following entities from std namespace are now used with std:: explicitly specified (from Standard_Stream.hxx): std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream, std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr, std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision, std::hex,std::dec.
This commit is contained in:
@@ -761,7 +761,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
|
||||
break;
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Storage_Sheme:: Line: = " << aLine <<endl;
|
||||
std::cout << "Storage_Sheme:: Line: = " << aLine <<std::endl;
|
||||
#endif
|
||||
TCollection_AsciiString aKey, aValue;
|
||||
aKey = aLine.Token();
|
||||
@@ -785,7 +785,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
|
||||
aDMap.Bind("TPrsStd_AISPresentation", "TDataXtd_Presentation");
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << endl;
|
||||
std::cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -796,7 +796,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
|
||||
newName = aDMap.Find(oldName);
|
||||
aMigration = Standard_True;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << " newName = " << newName << endl;
|
||||
std::cout << " newName = " << newName << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -840,7 +840,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
|
||||
if (time(&nowbin) == (time_t)-1)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cerr << "Storage ERROR : Could not get time of day from time()" << endl;
|
||||
std::cerr << "Storage ERROR : Could not get time of day from time()" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -849,7 +849,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
|
||||
if (strftime(nowstr, SLENGTH, "%m/%d/%Y", nowstruct) == (size_t) 0)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
cerr << "Storage ERROR : Could not get string from strftime()" << endl;
|
||||
std::cerr << "Storage ERROR : Could not get string from strftime()" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user