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

@@ -89,10 +89,10 @@ static void MAPDBN(const Standard_Integer dimension,
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
cout << " Debug Ft au parametre t+ = " << t << endl;
cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << endl;
cout << " Erreur estime : " << (Der-Diff) << endl;
std::cout << " Debug Ft au parametre t+ = " << t << std::endl;
std::cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << std::endl;
std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
}
// Verif a la fin
@@ -112,10 +112,10 @@ static void MAPDBN(const Standard_Integer dimension,
if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
cout << " Debug Ft au parametre t- = " << t << endl;
cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << endl;
cout << " Erreur estime : " << (Der-Diff) << endl;
std::cout << " Debug Ft au parametre t- = " << t << std::endl;
std::cout << " Positionement sur la derive "<< OrdreDer
<< " : " << Der << std::endl;
std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
}
}
}
@@ -1092,25 +1092,25 @@ Standard_Real AdvApprox_ApproxAFunction::AverageError(
void AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const
{
Standard_Integer ii;
o << "Dump of ApproxAFunction" << endl;
o << "Dump of ApproxAFunction" << std::endl;
if (myNumSubSpaces[0] > 0) {
o << "Error(s) 1d = " << endl;
o << "Error(s) 1d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
o << " " << MaxError(1, ii) << endl;
o << " " << MaxError(1, ii) << std::endl;
}
}
if (myNumSubSpaces[1] > 0) {
o << "Error(s) 2d = " << endl;
o << "Error(s) 2d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
o << " " << MaxError(2, ii) << endl;
o << " " << MaxError(2, ii) << std::endl;
}
}
if (myNumSubSpaces[2] > 0) {
o << "Error(s) 3d = " << endl;
o << "Error(s) 3d = " << std::endl;
for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
o << " " << MaxError(3, ii) << endl;
o << " " << MaxError(3, ii) << std::endl;
}
}
}

View File

@@ -232,7 +232,7 @@ void AdvApprox_SimpleApprox::Perform(const TColStd_Array1OfInteger& LocalDimensi
}
}
// for (i=0; i<(WorkDegree+1)*TotalDimension; i++)
// cout << " Coeff(" << i << ") = " << Coeff(i) << endl;
// std::cout << " Coeff(" << i << ") = " << Coeff(i) << std::endl;
// the computing of NewDegree
TColStd_Array1OfReal JacCoeff(0, myTotalDimension*(myWorkDegree+1)-1);
@@ -380,9 +380,9 @@ Standard_Real AdvApprox_SimpleApprox::AverageError(const Standard_Integer Index)
void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const
{
Standard_Integer ii;
o << "Dump of SimpleApprox " << endl;
o << "Dump of SimpleApprox " << std::endl;
for (ii=1; ii <= myTotalNumSS; ii++) {
o << "Error " << MaxError(ii) << endl;
o << "Error " << MaxError(ii) << std::endl;
}
}