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