summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2011-06-21 09:36:53 +0000
committerfcolin2011-06-21 09:36:53 +0000
commitc806351e61ed3b13274c3bfc54207b66bc4da5be (patch)
tree0923f151959e455f70e211e6ea9ee41a20a7b8a1
parent60920f8edff4a701e089e62b1f53c3040e58f309 (diff)
downloadivy-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"
-rw-r--r--Ivy/Ivy.cxx13
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;