1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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:
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

View File

@@ -599,7 +599,7 @@ Handle(CDM_Document) CDM_Document::FindFromPresentation
if(!getPresentations().IsBound(x)) {
Standard_SStream aMsg;
aMsg <<"No document having this presentation: " << x << " does exist."
<< endl << (char)0;
<< std::endl << (char)0;
throw Standard_NoSuchObject(aMsg.str().c_str());
}
return getPresentations()(x);
@@ -1125,7 +1125,7 @@ Handle(Resource_Manager) CDM_Document::StorageResource()
if(myApplication.IsNull()) {
Standard_SStream aMsg;
aMsg << "this document of format "<< StorageFormat()
<< " has not yet been opened by any application. "<< endl;
<< " has not yet been opened by any application. "<< std::endl;
throw Standard_Failure(aMsg.str().c_str());
}
return myApplication->Resources();
@@ -1155,7 +1155,7 @@ void CDM_Document::LoadResources()
myResourcesAreLoaded=Standard_True;
// cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << endl;
// std::cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << std::endl;
}
return;
}

View File

@@ -121,7 +121,7 @@ Standard_OStream& CDM_MetaData::Print(Standard_OStream& anOStream) const {
if(HasVersion()) anOStream << "," << myVersion ;
anOStream << "; Physical situation: ";
anOStream << myFileName;
anOStream << endl;
anOStream << std::endl;
return anOStream;
}
Standard_OStream& CDM_MetaData::operator << (Standard_OStream& anOStream) {