1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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,24 +103,24 @@ static void WriteTrsf(const gp_Trsf& T,
gp_Mat M = T.VectorialPart();
if (!compact) OS << "( ";
OS << setw(15) << M(1,1) << " ";
OS << setw(15) << M(1,2) << " ";
OS << setw(15) << M(1,3) << " ";
OS << setw(15) << V.Coord(1) << " ";
OS << std::setw(15) << M(1,1) << " ";
OS << std::setw(15) << M(1,2) << " ";
OS << std::setw(15) << M(1,3) << " ";
OS << std::setw(15) << V.Coord(1) << " ";
if (!compact) OS << " )";
OS << "\n";
if (!compact) OS << "( ";
OS << setw(15) << M(2,1) << " ";
OS << setw(15) << M(2,2) << " ";
OS << setw(15) << M(2,3) << " ";
OS << setw(15) << V.Coord(2) << " ";
OS << std::setw(15) << M(2,1) << " ";
OS << std::setw(15) << M(2,2) << " ";
OS << std::setw(15) << M(2,3) << " ";
OS << std::setw(15) << V.Coord(2) << " ";
if (!compact) OS << " )";
OS << "\n";
if (!compact) OS << "( ";
OS << setw(15) << M(3,1) << " ";
OS << setw(15) << M(3,2) << " ";
OS << setw(15) << M(3,3) << " ";
OS << setw(15) << V.Coord(3) << " ";
OS << std::setw(15) << M(3,1) << " ";
OS << std::setw(15) << M(3,2) << " ";
OS << std::setw(15) << M(3,3) << " ";
OS << std::setw(15) << V.Coord(3) << " ";
if (!compact) OS << " )";
OS << "\n";
}
@@ -141,7 +141,7 @@ void TopTools_LocationSet::Dump(Standard_OStream& OS) const
for (i = 1; i <= nbLoc; i++) {
TopLoc_Location L = myMap(i);
OS << setw(5) << i << " : \n";
OS << std::setw(5) << i << " : \n";
TopLoc_Location L2 = L.NextLocation();
Standard_Boolean simple = L2.IsIdentity();
@@ -255,7 +255,7 @@ void TopTools_LocationSet::Read(Standard_IStream& IS)
IS >> buffer;
if (strcmp(buffer,"Locations")) {
cout << "Not a location table "<<endl;
std::cout << "Not a location table "<<std::endl;
return;
}

View File

@@ -622,7 +622,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
} while ( ! IS.fail() && strcmp(vers,Version) && strcmp(vers,Version2) );
if (IS.fail()) {
cout << "File was not written with this version of the topology"<<endl;
std::cout << "File was not written with this version of the topology"<<std::endl;
IS.imbue (anOldLocale);
return;
}
@@ -635,7 +635,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
//OCC19559
if (!myProgress.IsNull() && myProgress->UserBreak()) {
cout << "Interrupted by the user"<<endl;
std::cout << "Interrupted by the user"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;
@@ -650,7 +650,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
}
//OCC19559
if (!myProgress.IsNull() && myProgress->UserBreak()) {
cout << "Interrupted by the user"<<endl;
std::cout << "Interrupted by the user"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;
@@ -674,7 +674,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS)
char buffer[255];
IS >> buffer;
if (strcmp(buffer,"TShapes")) {
cout << "Not a TShape table"<<endl;
std::cout << "Not a TShape table"<<std::endl;
// on remet le LC_NUMERIC a la precedente valeur
IS.imbue (anOldLocale);
return;