1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- use shortcuts

Message::DefaultMessenger()->Send() have been replaced by shortcuts Message::Send().
This commit is contained in:
kgv
2020-05-08 14:40:39 +03:00
committed by bugmaster
parent fa8a462827
commit a87b1b3738
33 changed files with 241 additions and 290 deletions

View File

@@ -142,8 +142,7 @@ bool RWMesh_MaterialMap::copyFileTo (const TCollection_AsciiString& theFileSrc,
OSD_File aFileSrc (aSrcPath);
if (!aFileSrc.Exists())
{
Message::DefaultMessenger()->Send (TCollection_AsciiString("Failed to copy file - source file '")
+ theFileSrc + "' does not exist\n", Message_Fail);
Message::SendFail (TCollection_AsciiString("Failed to copy file - source file '") + theFileSrc + "' does not exist");
return false;
}
aFileSrc.Copy (aDstPath);
@@ -151,8 +150,7 @@ bool RWMesh_MaterialMap::copyFileTo (const TCollection_AsciiString& theFileSrc,
}
catch (Standard_Failure const& theException)
{
Message::DefaultMessenger()->Send (TCollection_AsciiString("Failed to copy file\n") +
theException.GetMessageString(), Message_Fail);
Message::SendFail (TCollection_AsciiString("Failed to copy file\n") + theException.GetMessageString());
return false;
}
}