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:
@@ -286,7 +286,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//TNaming::Print(NS->Evolution(),cout);
|
||||
//TNaming::Print(NS->Evolution(),std::cout);
|
||||
Standard_SStream aStream;
|
||||
TNaming::Print(NS->Evolution(),aStream);
|
||||
di << aStream << "\n";
|
||||
@@ -461,7 +461,7 @@ static Standard_Integer DNaming_ImportShape (Draw_Interpretor& di,
|
||||
DDF::ReturnLabel(di, L);
|
||||
return 0;
|
||||
}
|
||||
cout << "DNaming_NewShape : Error" << endl;
|
||||
std::cout << "DNaming_NewShape : Error" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user