mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029447: The constructor of Message_PrinterOStream mixes up cout and cerr
Use of cerr or cout is corrected in Message_PrinterOStream constructor
This commit is contained in:
@@ -49,12 +49,12 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
|
||||
myIsFile (Standard_False)
|
||||
{
|
||||
myTraceLevel = theTraceLevel;
|
||||
if (strcasecmp(theFileName, "cout") == 0)
|
||||
if (strcasecmp(theFileName, "cerr") == 0)
|
||||
{
|
||||
myStream = &std::cerr;
|
||||
return;
|
||||
}
|
||||
else if (strcasecmp(theFileName, "cerr") == 0)
|
||||
else if (strcasecmp(theFileName, "cout") == 0)
|
||||
{
|
||||
myStream = &std::cout;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user