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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user