#include <Events_Loop.h>
Events_Error::Events_Error(char* theDescription, const void* theSender)
- : Events_Message(Events_Error::errorID(), theSender)
+ : Events_Message(Events_Error::errorID(), theSender)
{
myDescription = theDescription;
}
void Events_Error::send(char* theDescription, const void* theSender)
{
- Events_Error anError(theDescription, theSender);
- Events_Loop::loop()->send(anError);
+ boost::shared_ptr<Events_Message> aNewOne =
+ boost::shared_ptr<Events_Message>(new Events_Error(theDescription, theSender));
+ Events_Loop::loop()->send(aNewOne);
}
void Events_Error::send(std::string theDescription, const void* theSender)
{
- Events_Error::send(theDescription.c_str(), theSender);
+ Events_Error::send((char*) theDescription.c_str(), theSender);
}