diff options
author | fcolin | 2011-06-21 09:36:53 +0000 |
---|---|---|
committer | fcolin | 2011-06-21 09:36:53 +0000 |
commit | c806351e61ed3b13274c3bfc54207b66bc4da5be (patch) | |
tree | 0923f151959e455f70e211e6ea9ee41a20a7b8a1 /Ivy/Ivy.cxx | |
parent | 60920f8edff4a701e089e62b1f53c3040e58f309 (diff) | |
download | ivy-cplusplus-windows.zip ivy-cplusplus-windows.tar.gz ivy-cplusplus-windows.tar.bz2 ivy-cplusplus-windows.tar.xz |
verification des parametres Ivy Appname et ready messagewindows
ajout valeur par defaut si vide "$AppName READY"
Diffstat (limited to 'Ivy/Ivy.cxx')
-rw-r--r-- | Ivy/Ivy.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx index 1640b45..6484236 100644 --- a/Ivy/Ivy.cxx +++ b/Ivy/Ivy.cxx @@ -61,8 +61,17 @@ Ivy::Ivy(const char* name, const char * ready, IvyApplicationCallback *callback, synchronous = Synchronous;
IvySynchroWnd::Init(synchronous);
- ready_message = ready;
- ApplicationName = name;
+ // check for empty application name
+ if ( name == NULL || strlen( name ) == 0 )
+ ApplicationName = "LazyDevelopper";
+ else
+ ApplicationName = name;
+
+ // check for empty ready message
+ if ( ready == NULL || strlen( ready ) == 0 )
+ ready_message = ApplicationName + " READY";
+ else
+ ready_message = ready;
binding_callback = NULL;
application_callback = synchronous ? new IvySynchronousApplicationCallback(callback) : callback;
|