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

@@ -80,7 +80,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
BRep_Tool::PolygonOnTriangulation(aEdge, aT1, aLoc1);
if (aPoly1.IsNull() || aT1.IsNull()) {
#ifdef OCCT_DEBUG
cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
#endif
continue;
}
@@ -97,7 +97,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
BRep_Tool::PolygonOnTriangulation(aEdge, aT2, aLoc2);
if (aPoly2.IsNull() || aT2.IsNull()) {
#ifdef OCCT_DEBUG
cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
#endif
continue;
}

View File

@@ -42,7 +42,7 @@ Standard_EXPORT const char* MeshTest_DrawLinks(const char* theNameStr, void* the
if (aMeshData.IsNull())
return "Null mesh data structure";
Standard_Integer nbLinks = aMeshData->NbLinks();
cout << "nblink=" << nbLinks << endl;
std::cout << "nblink=" << nbLinks << std::endl;
TCollection_AsciiString aName(theNameStr);
for (Standard_Integer i = 1; i <= nbLinks; i++)
{
@@ -83,7 +83,7 @@ Standard_EXPORT const char* MeshTest_DrawTriangles(const char* theNameStr, void*
if (aMeshData.IsNull())
return "Null mesh data structure";
Standard_Integer nbElem = aMeshData->NbElements();
cout << "nbelem=" << nbElem << endl;
std::cout << "nbelem=" << nbElem << std::endl;
TCollection_AsciiString aName(theNameStr);
for (Standard_Integer i = 1; i <= nbElem; i++)
{

View File

@@ -300,7 +300,7 @@ static Standard_Integer triarea (Draw_Interpretor& di, int n, const char ** a)
TopLoc_Location aLoc;
Handle(Poly_Triangulation) aPoly = BRep_Tool::Triangulation(aFace,aLoc);
if (aPoly.IsNull()) {
cout << "face "<<i<<" has no triangulation"<<endl;
std::cout << "face "<<i<<" has no triangulation"<<std::endl;
continue;
}
const Poly_Array1OfTriangle& triangles = aPoly->Triangles();