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:
tiv
2019-08-02 10:32:16 +03:00
committed by bugmaster
parent 3977d18aca
commit 0423218095
972 changed files with 8554 additions and 8550 deletions
+3 -3
View File
@@ -127,8 +127,8 @@ void StepData_StepWriter::SetScope (const Standard_Integer numscope,
}
else if (thescopenext->Value(numin) != 0) {
#ifdef OCCT_DEBUG
cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
<< numin << "), Entity already in a Scope"<<endl;
std::cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
<< numin << "), Entity already in a Scope"<<std::endl;
#endif
throw Interface_InterfaceMismatch("StepWriter : SetScope, already set");
}
@@ -1153,7 +1153,7 @@ Standard_Boolean StepData_StepWriter::Print (Standard_OStream& S)
for (Standard_Integer i = 1; i <= nb && isGood; i ++)
S << thefile->Value(i)->ToCString() << "\n";
S<< flush;
S<< std::flush;
isGood = (S && S.good());
return isGood;