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:
@@ -155,7 +155,7 @@ void NCollection_BaseMap::Statistics(Standard_OStream& S) const
|
||||
if (sizes[i] > 0)
|
||||
{
|
||||
l += sizes[i] * i;
|
||||
S << setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
|
||||
S << std::setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -93,7 +93,7 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
|
||||
|
||||
/**
|
||||
* Check the filled tree for the total number of items and the balance
|
||||
* outputting these results to ostream.
|
||||
* outputting these results to std::ostream.
|
||||
* @return
|
||||
* the tree size (the same value is returned by method Fill()).
|
||||
*/
|
||||
@@ -107,8 +107,8 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
|
||||
{
|
||||
if (mySeqPtr.Length() > 0)
|
||||
#ifdef OCCT_DEBUG_UBTREE
|
||||
cout << "~NCollection_UBTreeFiller: " << Fill()
|
||||
<< " objects added to the tree" << endl;
|
||||
std::cout << "~NCollection_UBTreeFiller: " << Fill()
|
||||
<< " objects added to the tree" << std::endl;
|
||||
#else
|
||||
Fill();
|
||||
#endif
|
||||
@@ -181,7 +181,7 @@ Standard_Integer NCollection_UBTreeFiller<TheObjType,TheBndType>::CheckTree
|
||||
char buf[128];
|
||||
sprintf (buf, "Checking UBTree:%8d leaves, balance =%7.2f",
|
||||
aNumber, aLen1 / aLen0);
|
||||
theStream << buf << endl;
|
||||
theStream << buf << std::endl;
|
||||
return aNumber;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user