Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1112 tab key doesn't work on the last field of left panels
[modules/shaper.git]
/
src
/
Events
/
Events_Error.cpp
diff --git
a/src/Events/Events_Error.cpp
b/src/Events/Events_Error.cpp
index 3ac990edb5893922ecb85a3cca24c1fe0276055c..4b7670e8ef55e1c54794c6880b01b4191151c7ed 100644
(file)
--- 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
*
/*
* Events_Error.cpp
*
@@
-8,7
+10,7
@@
#include <Events_Error.h>
#include <Events_Loop.h>
#include <Events_Error.h>
#include <Events_Loop.h>
-Events_Error::Events_Error(c
har*
theDescription, const void* theSender)
+Events_Error::Events_Error(c
onst std::string&
theDescription, const void* theSender)
: Events_Message(Events_Error::errorID(), theSender)
{
myDescription = theDescription;
: Events_Message(Events_Error::errorID(), theSender)
{
myDescription = theDescription;
@@
-24,19
+26,14
@@
Events_ID Events_Error::errorID()
return aLoop->eventByName("ApplicationError");
}
return aLoop->eventByName("ApplicationError");
}
-char* Events_Error::description() const
+c
onst c
har* Events_Error::description() const
{
{
- return myDescription;
+ return myDescription
.c_str()
;
}
}
-void Events_Error::send(c
har*
theDescription, const void* theSender)
+void Events_Error::send(c
onst std::string&
theDescription, const void* theSender)
{
{
-
boost
::shared_ptr<Events_Message> aNewOne =
-
boost
::shared_ptr<Events_Message>(new Events_Error(theDescription, theSender));
+
std
::shared_ptr<Events_Message> aNewOne =
+
std
::shared_ptr<Events_Message>(new Events_Error(theDescription, theSender));
Events_Loop::loop()->send(aNewOne);
}
Events_Loop::loop()->send(aNewOne);
}
-
-void Events_Error::send(std::string theDescription, const void* theSender)
-{
- Events_Error::send((char*) theDescription.c_str(), theSender);
-}