mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -317,7 +317,7 @@ Standard_Boolean ChFi2d_FilletAlgo::Perform(const Standard_Real theRadius)
|
||||
default: // unknown: maximum
|
||||
aNBSteps = 100;
|
||||
}
|
||||
//cout<<"aNBSteps = "<<aNBSteps<<endl;
|
||||
//std::cout<<"aNBSteps = "<<aNBSteps<<std::endl;
|
||||
|
||||
myRadius = theRadius;
|
||||
Standard_Real aParam, aStep, aDStep;
|
||||
@@ -439,7 +439,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
|
||||
|
||||
if (Abs(aA) < Precision::Confusion())
|
||||
{ // linear case
|
||||
//cout<<"###"<<endl;
|
||||
//std::cout<<"###"<<std::endl;
|
||||
if (Abs(aB) > 10e-20)
|
||||
{
|
||||
Standard_Real aX0 = - aC / aB; // use extremum
|
||||
@@ -455,7 +455,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
|
||||
{
|
||||
if (Abs(aB) > Abs(aDet * 1000000.))
|
||||
{ // possible floating point operations accurancy errors
|
||||
//cout<<"*";
|
||||
//std::cout<<"*";
|
||||
ProcessPoint(theLeft, theRight, theLeft->getParam() + aDX / 2.0); // linear division otherwise
|
||||
}
|
||||
else
|
||||
@@ -471,7 +471,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
|
||||
}
|
||||
else
|
||||
{
|
||||
//cout<<"%%%"<<endl;
|
||||
//std::cout<<"%%%"<<std::endl;
|
||||
Standard_Real aX0 = - aB / aA; // use extremum
|
||||
if (aX0 > theLeft->getParam() && aX0 < theRight->getParam())
|
||||
ProcessPoint(theLeft, theRight, aX0);
|
||||
|
Reference in New Issue
Block a user