X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Error.cpp;h=2f606b7f91d7f02cb21dcdff83cc8ab79f1c2cc3;hb=aeca03e919a402327655e3f9c133985d9223b873;hp=ff3fd58e82ee0c7fad634b73c4ed86a8445bb5a2;hpb=053c2aaf6db6bc45c25cf542983f712098d77862;p=modules%2Fshaper.git diff --git a/src/Events/Events_Error.cpp b/src/Events/Events_Error.cpp index ff3fd58e8..2f606b7f9 100644 --- a/src/Events/Events_Error.cpp +++ b/src/Events/Events_Error.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * Events_Error.cpp * @@ -9,7 +11,7 @@ #include Events_Error::Events_Error(char* theDescription, const void* theSender) - : Events_Message(Events_Error::errorID(), theSender) + : Events_Message(Events_Error::errorID(), theSender) { myDescription = theDescription; } @@ -31,11 +33,12 @@ char* Events_Error::description() const void Events_Error::send(char* theDescription, const void* theSender) { - Events_Error anError(theDescription, theSender); - Events_Loop::loop()->send(anError); + std::shared_ptr aNewOne = + std::shared_ptr(new Events_Error(theDescription, theSender)); + Events_Loop::loop()->send(aNewOne); } void Events_Error::send(std::string theDescription, const void* theSender) { - Events_Error::send((char*)theDescription.c_str(), theSender); + Events_Error::send((char*) theDescription.c_str(), theSender); }