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:
@@ -551,10 +551,10 @@ static Standard_Integer loadvrml
|
||||
VrmlData_DataMapOfShapeAppearance aShapeAppMap;
|
||||
|
||||
//-----------------------------------------------------------
|
||||
filebuf aFic;
|
||||
istream aStream (&aFic);
|
||||
std::filebuf aFic;
|
||||
std::istream aStream (&aFic);
|
||||
|
||||
if (aFic.open(argv[2], ios::in)) {
|
||||
if (aFic.open(argv[2], std::ios::in)) {
|
||||
|
||||
// Get path of the VRML file.
|
||||
OSD_Path aPath(argv[2]);
|
||||
|
@@ -36,7 +36,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
|
||||
const TColgp_Array1OfPnt& aCoords = myMesh->Nodes();
|
||||
Standard_Integer len = aCoords.Length(), i, j;
|
||||
myNodeCoords = new TColStd_HArray2OfReal(1, len, 1, 3);
|
||||
cout << "Nodes : " << len << endl;
|
||||
std::cout << "Nodes : " << len << std::endl;
|
||||
|
||||
gp_XYZ xyz;
|
||||
|
||||
@@ -55,7 +55,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
|
||||
myElemNormals = new TColStd_HArray2OfReal(1, len, 1, 3);
|
||||
myElemNodes = new TColStd_HArray2OfInteger(1, len, 1, 3);
|
||||
|
||||
cout << "Elements : " << len << endl;
|
||||
std::cout << "Elements : " << len << std::endl;
|
||||
|
||||
for( i = 1; i <= len; i++ )
|
||||
{
|
||||
@@ -89,7 +89,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
|
||||
myElemNormals->SetValue (i, 3, aN.Z());
|
||||
}
|
||||
}
|
||||
cout << "Construction is finished" << endl;
|
||||
std::cout << "Construction is finished" << std::endl;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
|
Reference in New Issue
Block a user