1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +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

@@ -106,11 +106,11 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
void IFSelect_Editor::PrintNames (const Handle(Message_Messenger)& S) const
{
Standard_Integer i, nb = NbValues();
S<<"**** Editor : "<<Label()<<endl;
S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<endl;
S<<"**** Editor : "<<Label()<<Message_EndLine;
S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<Message_EndLine;
S<<" Num ";
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<endl;
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -120,7 +120,7 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
const TCollection_AsciiString& sho = theshorts(i);
S<<sho<<Interface_MSG::Blanks(sho.ToCString(),themaxsh)<<" ";
}
S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<endl;
S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<Message_EndLine;
}
}
@@ -128,15 +128,15 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
(const Handle(Message_Messenger)& S, const Standard_Boolean labels) const
{
Standard_Integer i, nb = NbValues();
S<<"**** Editor : "<<Label()<<endl;
S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<endl;
S<<"**** Editor : "<<Label()<<Message_EndLine;
S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<Message_EndLine;
S<<" Num ";
if (labels) S<<"Label"<<Interface_MSG::Blanks("Label",themaxla);
else {
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh+1);
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco);
}
S<<" Edit Mode & Definition"<<endl;
S<<" Edit Mode & Definition"<<Message_EndLine;
for (i = 1; i <= nb; i ++) {
Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -167,7 +167,7 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
default : S<<"?????????"; break;
}
S<<" "<<tv->Definition()<<endl;
S<<" "<<tv->Definition()<<Message_EndLine;
}
}