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

@@ -61,7 +61,7 @@ Standard_Boolean DDF::FindLabel (const Handle(TDF_Data)& DF,
{
Label.Nullify();
TDF_Tool::Label(DF,Entry,Label,Standard_False);
if (Label.IsNull() && Complain) cout << "No label for entry " << Entry <<endl;
if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<std::endl;
return !Label.IsNull();
}
@@ -82,7 +82,7 @@ Standard_Boolean DDF::GetDF (Standard_CString& Name,
DF = DDF->DataFramework();
return Standard_True;
}
if (Complain) cout <<"framework "<<Name<<" not found "<< endl;
if (Complain) std::cout <<"framework "<<Name<<" not found "<< std::endl;
return Standard_False;
}
@@ -101,7 +101,7 @@ Standard_Boolean DDF::Find (const Handle(TDF_Data)& DF,
TDF_Label L;
if (FindLabel(DF,Entry,L,Complain)) {
if (L.FindAttribute(ID,A)) return Standard_True;
if (Complain) cout <<"attribute not found for entry : "<< Entry <<endl;
if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl;
}
return Standard_False;
}