mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
@@ -130,7 +130,7 @@ ShapeExtend_ComplexCurve::ShapeExtend_ComplexCurve()
|
||||
(Curve (i + 1)->Value (Curve(i + 1)->FirstParameter()), Preci);
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!ok) cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << endl;
|
||||
if (!ok) std::cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << std::endl;
|
||||
#endif
|
||||
return ok;
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::Init (const Handle(TColGeom_HArra
|
||||
ok = Standard_False;
|
||||
ComputeJointValues ( ShapeExtend_Natural );
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << endl;
|
||||
std::cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -838,7 +838,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::CheckConnectivity (const Standard
|
||||
}
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( ! ok ) cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << endl;
|
||||
if ( ! ok ) std::cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << std::endl;
|
||||
#endif
|
||||
return ok;
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
|
||||
{
|
||||
if (object.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << endl;
|
||||
std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
|
||||
{
|
||||
if (shape.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << endl;
|
||||
std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user