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:
@@ -19,7 +19,7 @@
|
||||
|
||||
inline void IntWalk_IWLine::Cut(const Standard_Integer Index)
|
||||
{
|
||||
//-- cout<<" split : "<<Index<<endl;
|
||||
//-- std::cout<<" split : "<<Index<<std::endl;
|
||||
Handle(IntSurf_LineOn2S) lost = line->Split(Index);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ inline void IntWalk_IWLine::SetTangentVector (const gp_Vec& V,
|
||||
indextg = Index;
|
||||
vcttg = V;
|
||||
|
||||
//-- cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<" Ind:"<<Index<<" NbPts:"<<NbPoints()<<endl;
|
||||
//-- std::cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<" Ind:"<<Index<<" NbPts:"<<NbPoints()<<std::endl;
|
||||
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ inline void IntWalk_IWLine::SetTangencyAtEnd
|
||||
inline const gp_Vec& IntWalk_IWLine::TangentVector
|
||||
(Standard_Integer& Index) const {
|
||||
//-- if(istgtend == Standard_False && istgtbeg == Standard_False) {
|
||||
//-- cout<<" IntWalk_IWLine.lxx : Pb "<<endl;
|
||||
//-- std::cout<<" IntWalk_IWLine.lxx : Pb "<<std::endl;
|
||||
//-- }
|
||||
Index = indextg;
|
||||
return vcttg;
|
||||
|
@@ -833,7 +833,7 @@ void IntWalk_IWalking::TestArretCadre
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else {
|
||||
cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<endl;
|
||||
std::cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@@ -1210,7 +1210,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
|
||||
{
|
||||
Arrive=Standard_True;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<endl;
|
||||
std::cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1705,7 +1705,7 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
|
||||
|
||||
if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
|
||||
std::cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << std::endl;
|
||||
#endif
|
||||
bStop = Standard_True;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user