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
Meet the coding style (line length <= 100)
[modules/shaper.git]
/
src
/
Events
/
Events_InfoMessage.cpp
diff --git
a/src/Events/Events_InfoMessage.cpp
b/src/Events/Events_InfoMessage.cpp
index 18d38a95cfe7656d11793a308f32e067ba181623..38190e4e285244037f57483c71a3ed79bc446e02 100644
(file)
--- a/
src/Events/Events_InfoMessage.cpp
+++ b/
src/Events/Events_InfoMessage.cpp
@@
-6,25
+6,28
@@
#include "Events_InfoMessage.h"
#include "Events_InfoMessage.h"
+#ifdef WIN32
+#pragma warning(disable : 4996) // for sprintf
+#endif
-void Events_InfoMessage::addParameter(double theParam)
-{
+void Events_InfoMessage::addParameter(double theParam)
+{
char aBuf[50];
int n = sprintf(aBuf, "%g", theParam);
std::string aStr(aBuf);
char aBuf[50];
int n = sprintf(aBuf, "%g", theParam);
std::string aStr(aBuf);
- myParameters.push_back(aStr);
+ myParameters.push_back(aStr);
}
}
-void Events_InfoMessage::addParameter(int theParam)
-{
+void Events_InfoMessage::addParameter(int theParam)
+{
char aBuf[50];
int n = sprintf(aBuf, "%d", theParam);
std::string aStr(aBuf);
char aBuf[50];
int n = sprintf(aBuf, "%d", theParam);
std::string aStr(aBuf);
- myParameters.push_back(aStr);
+ myParameters.push_back(aStr);
}
}
-void Events_InfoMessage::send()
-{
+void Events_InfoMessage::send()
+{
std::shared_ptr<Events_Message> aMsg(new Events_InfoMessage(*this));
std::shared_ptr<Events_Message> aMsg(new Events_InfoMessage(*this));
- Events_Loop::loop()->send(aMsg);
+ Events_Loop::loop()->send(aMsg);
}
}