mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -610,7 +610,7 @@ static Standard_Boolean stest(const Handle(Draw_Drawable3D)& d)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static void ssave (const Handle(Draw_Drawable3D)&d, ostream& OS)
|
||||
static void ssave (const Handle(Draw_Drawable3D)&d, std::ostream& OS)
|
||||
{
|
||||
Handle(HLRTest_Projector) HP =
|
||||
Handle(HLRTest_Projector)::DownCast(d);
|
||||
@@ -647,7 +647,7 @@ static void ssave (const Handle(Draw_Drawable3D)&d, ostream& OS)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
static Handle(Draw_Drawable3D) srestore (istream& IS)
|
||||
static Handle(Draw_Drawable3D) srestore (std::istream& IS)
|
||||
{
|
||||
Standard_Boolean pers;
|
||||
IS >> pers;
|
||||
|
@@ -96,7 +96,7 @@ HLRTest_DrawablePolyEdgeTool (const Handle(HLRBRep_PolyAlgo)& Alg,
|
||||
}
|
||||
if (myDebug) {
|
||||
ChronHide.Stop();
|
||||
cout << " Temps Hide :";
|
||||
std::cout << " Temps Hide :";
|
||||
ChronHide.Show();
|
||||
}
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ Handle(Draw_Drawable3D) HLRTest_OutLiner::Copy () const
|
||||
|
||||
void HLRTest_OutLiner::Dump (Standard_OStream& S) const
|
||||
{
|
||||
S << "This is an outliner" << endl;
|
||||
S << "This is an outliner" << std::endl;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -66,11 +66,11 @@ void HLRTest_Projector::Dump (Standard_OStream& S) const
|
||||
for (Standard_Integer i = 1; i <= 3; i++) {
|
||||
|
||||
for (Standard_Integer j = 1; j <= 4; j++) {
|
||||
S << setw(15) << myProjector.Transformation().Value(i,j);
|
||||
S << std::setw(15) << myProjector.Transformation().Value(i,j);
|
||||
}
|
||||
S << "\n";
|
||||
}
|
||||
S << endl;
|
||||
S << std::endl;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user