mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -120,7 +120,7 @@ Standard_Integer XmlMDF::WriteSubTree
|
||||
#ifdef OCCT_DEBUG
|
||||
else if (!UnsuppTypesMap().Contains (aType))
|
||||
{
|
||||
cout << "attribute driver for type "<< aType -> Name()<< " not found"<< endl;
|
||||
std::cout << "attribute driver for type "<< aType -> Name()<< " not found"<< std::endl;
|
||||
UnsuppTypesMap().Add (aType);
|
||||
}
|
||||
#endif
|
||||
@@ -232,8 +232,8 @@ Standard_Integer XmlMDF::ReadSubTree (const XmlObjMgt_Element& theElement,
|
||||
TCollection_AsciiString newName;
|
||||
if(Storage_Schema::CheckTypeMigration(aName, newName)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<endl;
|
||||
cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
|
||||
std::cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<std::endl;
|
||||
std::cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<std::endl;
|
||||
#endif
|
||||
aName = newName.ToCString();
|
||||
}
|
||||
@@ -296,8 +296,8 @@ Standard_Integer XmlMDF::ReadSubTree (const XmlObjMgt_Element& theElement,
|
||||
else
|
||||
{
|
||||
const TCollection_AsciiString anAsciiName = aName;
|
||||
cerr << "XmlDriver warning: "
|
||||
<< "label contains object of unknown type "<< anAsciiName<< endl;
|
||||
std::cerr << "XmlDriver warning: "
|
||||
<< "label contains object of unknown type "<< anAsciiName<< std::endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user