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

@@ -103,7 +103,7 @@ myFace1(Face1),
#ifdef OCCT_DEBUG
if ( Affich) {
NBCALL++;
cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << endl;
std::cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << std::endl;
#ifdef DRAW
char name[256];
@@ -279,8 +279,8 @@ static void EvalParameters(const TopoDS_Edge& Edge,
if (NbSegments > 0) {
#ifdef OCCT_DEBUG
cout << " IntersectWith : " << NbSegments
<< " Segments of intersection" << endl;
std::cout << " IntersectWith : " << NbSegments
<< " Segments of intersection" << std::endl;
#endif
IntRes2d_IntersectionSegment Seg;
for ( Standard_Integer i = 1; i <= NbSegments; i++) {
@@ -305,7 +305,7 @@ static void EvalParameters(const TopoDS_Edge& Edge,
P1 = Seq.Value(i);
P2 = Seq.Value(i+1);
if ( P2.X()-P1.X() < Tol ) {
// cout<<"REMOVE "<<P1.X()<<endl;
// std::cout<<"REMOVE "<<P1.X()<<std::endl;
Seq.Remove(i--);
NbPoints--;
}
@@ -432,7 +432,7 @@ void BRepFill_TrimSurfaceTool::IntersectWith
PSeq = Points(i);
PSeq.SetZ((Points2.Value(i)).Y());
Points.SetValue(i,PSeq);
// cout<<"BisPar "<<PSeq.X()<<endl;
// std::cout<<"BisPar "<<PSeq.X()<<std::endl;
}
}
@@ -488,9 +488,9 @@ Standard_Real BRepFill_TrimSurfaceTool::ProjOn(const gp_Pnt2d& Point,
#ifdef OCCT_DEBUG
Standard_Real Dist = Projector.LowerDistance();
if ( Dist > Precision::Confusion() ) {
cout << " *** WARNING TrimSurfaceTool: *** " << endl;
cout << " --> the point is not on the edge" <<endl;
cout << " distance = " << Dist << endl;
std::cout << " *** WARNING TrimSurfaceTool: *** " << std::endl;
std::cout << " --> the point is not on the edge" <<std::endl;
std::cout << " distance = " << Dist << std::endl;
}
#endif