1
0
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:
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

@@ -61,7 +61,7 @@ void DPrsStd::Factory(Draw_Interpretor& theDI)
DPrsStd::AllCommands(theDI);
DDocStd::AllCommands(theDI);
#ifdef OCCT_DEBUG
cout << "Draw Plugin : All DF commands are loaded" << endl;
std::cout << "Draw Plugin : All DF commands are loaded" << std::endl;
#endif
}

View File

@@ -167,7 +167,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
Standard_GUID guid;
TCollection_ExtendedString str = arg[3];
#ifdef OCCT_DEBUG
cout << "Inputed parameter > " << str << endl;
std::cout << "Inputed parameter > " << str << std::endl;
#endif
if ( str == "A" ) //axis
guid = TDataXtd_Axis::GetID(); //"2a96b601-ec8b-11d0-bee7-080009dc3333"
@@ -188,9 +188,9 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, guid);
#ifdef OCCT_DEBUG
cout << "Driver GUID = ";
prs->GetDriverGUID().ShallowDump(cout);
cout << "\n";
std::cout << "Driver GUID = ";
prs->GetDriverGUID().ShallowDump(std::cout);
std::cout << "\n";
#endif
Standard_Character resS[37];
Standard_PCharacter presS;
@@ -233,7 +233,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
else {
TCollection_ExtendedString str = arg[3];
#ifdef OCCT_DEBUG
cout << "Inputed parameter > " << str << endl;
std::cout << "Inputed parameter > " << str << std::endl;
#endif
if ( str == "A" ) //axis
guid = TDataXtd_Axis::GetID(); //"2a96b601-ec8b-11d0-bee7-080009dc3333"