1
0
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:
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

@@ -170,10 +170,10 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
}
#ifdef APPROXINT_KNOTTOOLS_DEBUG
cout << "Discrete curvature array is" << endl;
std::cout << "Discrete curvature array is" << std::endl;
for(i = aCurv.Lower(); i <= aCurv.Upper(); ++i)
{
cout << i << " " << aCurv(i) << endl;
std::cout << i << " " << aCurv(i) << std::endl;
}
#endif
@@ -219,11 +219,11 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
#if defined(APPROXINT_KNOTTOOLS_DEBUG)
{
cout << "Feature indices new: " << endl;
std::cout << "Feature indices new: " << std::endl;
i;
for(i = theInds.Lower(); i <= theInds.Upper(); ++i)
{
cout << i << " : " << theInds(i) << endl;
std::cout << i << " : " << theInds(i) << std::endl;
}
}
#endif
@@ -608,10 +608,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
ComputeKnotInds(aCoords, aDim, thePars, aKnots);
#if defined(APPROXINT_KNOTTOOLS_DEBUG)
cout << "Draft knot sequence: " << endl;
std::cout << "Draft knot sequence: " << std::endl;
for(i = aKnots.Lower(); i <= aKnots.Upper(); ++i)
{
cout << i << " : " << aKnots(i) << endl;
std::cout << i << " : " << aKnots(i) << std::endl;
}
#endif
@@ -619,10 +619,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
FilterKnots(aKnots, theMinNbPnts, theKnots);
#if defined(APPROXINT_KNOTTOOLS_DEBUG)
cout << "Result knot sequence: " << endl;
std::cout << "Result knot sequence: " << std::endl;
for(i = theKnots.Lower(); i <= theKnots.Upper(); ++i)
{
cout << i << " : " << theKnots(i) << endl;
std::cout << i << " : " << theKnots(i) << std::endl;
}
#endif

View File

@@ -21,7 +21,7 @@
#include <math_FunctionSetRoot.hxx>
#include <Precision.hxx>
#define Debug(expr) cout<<" expr :"<<expr;
#define Debug(expr) std::cout<<" expr :"<<expr;
#define MySurf1 MyIntersectionOn2S.Function().AuxillarSurface1()
#define MySurf2 MyIntersectionOn2S.Function().AuxillarSurface2()