1
0
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:
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

@@ -805,7 +805,7 @@ void ProjLib_CompProjectedCurve::Init()
myTolU, myTolV, myCurve, mySurface))
{
#ifdef OCCT_DEBUG
cout<<"There is a problem with ExactBound computation"<<endl;
std::cout<<"There is a problem with ExactBound computation"<<std::endl;
#endif
DichExactBound(Triple, t - Step, Tol, myTolU, myTolV,
myCurve, mySurface);
@@ -879,7 +879,7 @@ void ProjLib_CompProjectedCurve::Init()
myCurve, mySurface))
{
#ifdef OCCT_DEBUG
cout<<"There is a problem with ExactBound computation"<<endl;
std::cout<<"There is a problem with ExactBound computation"<<std::endl;
#endif
DichExactBound(Triple, t, Tol, myTolU, myTolV,
myCurve, mySurface);
@@ -1548,7 +1548,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const
TColStd_SequenceOfReal TUdisc;
for(k = 2; k <= NbIntSurU; k++) {
// cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<endl;
// std::cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<std::endl;
for(i = 1; i <= myNbCurves; i++)
{
for(j = 1; j < mySequence->Value(i)->Length(); j++)
@@ -1616,7 +1616,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const
{
for(i = 1; i <= myNbCurves; i++)
{
// cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<endl;
// std::cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<std::endl;
for(j = 1; j < mySequence->Value(i)->Length(); j++) {
Vl = mySequence->Value(i)->Value(j).Z();

View File

@@ -1105,8 +1105,8 @@ void ProjLib_ComputeApprox::Perform
// for ( Standard_Integer i = 1; i <= Nb+1; i++) {
// U = U1 + (i-1)*dU;
// Poles(i) = F.Value(U);
// cout << "i = " << i << ": U = " << U <<
// ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << endl;
// std::cout << "i = " << i << ": U = " << U <<
// ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << std::endl;
// Knots(i) = i;
// Mults(i) = 1;
// }

View File

@@ -1984,7 +1984,7 @@ Handle(Geom2d_BSplineCurve)
}
#ifdef OCCT_DEBUG
if (!OK) {
cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<endl;
std::cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<std::endl;
}
#endif
return Dummy;

View File

@@ -111,11 +111,11 @@ ProjLib_PrjFunc::ProjLib_PrjFunc(const Adaptor3d_CurvePtr & C,const Standard_Rea
D(2, 2) = (DS1_v*DS1_u + V*DS2_uv)*myNorm;// dE2/du
}
/* cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<endl;
cout<<"dE1/dt = "<<D(1,1)<<endl;
cout<<"dE1/dv = "<<D(1,2)<<endl;
cout<<"dE2/dt = "<<D(2,1)<<endl;
cout<<"dE2/dv = "<<D(2,2)<<endl;
/* std::cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<std::endl;
std::cout<<"dE1/dt = "<<D(1,1)<<std::endl;
std::cout<<"dE1/dv = "<<D(1,2)<<std::endl;
std::cout<<"dE2/dt = "<<D(2,1)<<std::endl;
std::cout<<"dE2/dv = "<<D(2,2)<<std::endl;
*/

View File

@@ -53,7 +53,7 @@ static gp_Pnt OnSurface_Value(const Standard_Real U,
}
}
if ( Index == 0 ) {
cout << " Extrema non trouve pour U = " << U << endl;
std::cout << " Extrema non trouve pour U = " << U << std::endl;
return gp_Pnt(0.,0.,0.);
}
else {