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:
@@ -53,7 +53,7 @@ class Message_Messenger : public Standard_Transient
|
||||
DEFINE_STANDARD_RTTIEXT(Message_Messenger, Standard_Transient)
|
||||
public:
|
||||
|
||||
//! Empty constructor; initializes by single printer directed to cout.
|
||||
//! Empty constructor; initializes by single printer directed to std::cout.
|
||||
//! Note: the default messenger is not empty but directed to cout
|
||||
//! in order to protect against possibility to forget defining printers.
|
||||
//! If printing to cout is not needed, clear messenger by GetPrinters().Clear()
|
||||
@@ -178,6 +178,13 @@ inline const Handle(Message_Messenger)&
|
||||
return pman (theMessenger);
|
||||
}
|
||||
|
||||
// Message_EndLine
|
||||
inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Messenger)& theMessenger)
|
||||
{
|
||||
theMessenger->Send ("", Message_Info, Standard_True);
|
||||
return theMessenger;
|
||||
}
|
||||
|
||||
// endl
|
||||
inline const Handle(Message_Messenger)& endl (const Handle(Message_Messenger)& theMessenger)
|
||||
{
|
||||
|
Reference in New Issue
Block a user