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

@@ -132,7 +132,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
cout<<"the chamfer can't pass"<<endl;
std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
@@ -146,7 +146,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if (ouvert) {
if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
#ifdef OCCT_DEBUG
cout<<"wrong choice of angle for the chamfer"<<endl;
std::cout<<"wrong choice of angle for the chamfer"<<std::endl;
#endif
return Standard_False;
}
@@ -160,7 +160,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
#ifdef OCCT_DEBUG
cout <<"wrong choice of angle for the chamfer"<<endl;
std::cout <<"wrong choice of angle for the chamfer"<<std::endl;
#endif
return Standard_False;
}
@@ -194,7 +194,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
cout<<"the chamfer can't pass"<<endl;
std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -146,7 +146,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
if(Rad < 0 ) {
#ifdef OCCT_DEBUG
cout<<"the chamfer can't pass"<<endl;
std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}
@@ -402,7 +402,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
if (dis2 < -1.E-09) {
#ifdef OCCT_DEBUG
cout<<"too great angle of chamfer"<<endl;
std::cout<<"too great angle of chamfer"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -209,7 +209,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
if ( Abs(ChamfRad)<=Precision::Confusion() ) pointu = Standard_True;
if( ChamfRad < 0 ) {
#ifdef OCCT_DEBUG
cout<<"le chanfrein ne passe pas"<<endl;
std::cout<<"le chanfrein ne passe pas"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -140,7 +140,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
if(Rad < 0 ) {
#ifdef OCCT_DEBUG
cout<<"the chamfer can't pass"<<endl;
std::cout<<"the chamfer can't pass"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -125,7 +125,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
else if(Rad < 0){
#ifdef OCCT_DEBUG
cout<<"the fillet does not pass"<<endl;
std::cout<<"the fillet does not pass"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -86,7 +86,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
}
else {
#ifdef OCCT_DEBUG
cout<<"the fillet does not pass"<<endl;
std::cout<<"the fillet does not pass"<<std::endl;
#endif
return Standard_False;
}
@@ -294,7 +294,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
else if(Rad < 0){
#ifdef OCCT_DEBUG
cout<<"the fillet can't pass"<<endl;
std::cout<<"the fillet can't pass"<<std::endl;
#endif
return Standard_False;
}

View File

@@ -90,7 +90,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
dz = gp_Dir(gp_Vec(p1,cen));
if(Abs(ds1.Dot(dz)-1.)>ptol){
#ifdef OCCT_DEBUG
cout<<"center of the spherical corner not found"<<endl;
std::cout<<"center of the spherical corner not found"<<std::endl;
#endif
return Standard_False;
}