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

@@ -267,14 +267,14 @@ Standard_OStream& TDF_RelocationTable::Dump
if (mySelfRelocate) anOS<<"IS"; else anOS<<"NOT";
anOS<<" self relocate ";
if (myAfterRelocate) anOS<<"WITH"; else anOS<<"WITHOUT";
anOS<<" after relocate"<<endl;
anOS<<" after relocate"<<std::endl;
anOS<<"Nb labels="<<myLabelTable.Extent();
anOS<<" Nb attributes="<<myAttributeTable.Extent();
anOS<<" Nb transients="<<myTransientTable.Extent()<<endl;
anOS<<" Nb transients="<<myTransientTable.Extent()<<std::endl;
Standard_Integer nb = 0;
if (dumpLabels) {
anOS<<"Label Table:"<<endl;
anOS<<"Label Table:"<<std::endl;
for (TDF_DataMapIteratorOfLabelDataMap itr(myLabelTable);
itr.More(); itr.Next()) {
++nb;
@@ -284,12 +284,12 @@ Standard_OStream& TDF_RelocationTable::Dump
itr.Value().EntryDump(anOS);
anOS<<"| ";
}
cout<<endl;
std::cout<<std::endl;
}
nb = 0;
if (dumpAttributes) {
anOS<<"Attribute Table:"<<endl;
anOS<<"Attribute Table:"<<std::endl;
for (TDF_DataMapIteratorOfAttributeDataMap itr(myAttributeTable);
itr.More(); itr.Next()) {
++nb;
@@ -298,12 +298,12 @@ Standard_OStream& TDF_RelocationTable::Dump
anOS<<"<=>";
itr.Value()->Dump(anOS);
anOS<<"| ";
anOS<<endl;
anOS<<std::endl;
}
}
if (dumpTransients) {
anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<endl;
anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<std::endl;
}
return anOS;