]> git.sur5r.net Git - bacula/bacula/commitdiff
fixed tests
authorNicolas Boichat <nicolas@boichat.ch>
Fri, 25 Jun 2004 16:02:06 +0000 (16:02 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Fri, 25 Jun 2004 16:02:06 +0000 (16:02 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1444 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxbconfigpanel.cpp

index 75276c03d0432db86fc535e5b4e7b5a05b96aeb2..793f03418fb7374b059030753920b3241ed104d0 100644 (file)
@@ -88,13 +88,13 @@ wxString wxbConfigParam::GetTitle() {
 wxString wxbConfigParam::GetValue() {
    switch (type) {
    case text:
-      return (statictext) ? statictext->GetLabel() : "";
+      return (statictext != NULL) ? statictext->GetLabel() : "";
       break;
    case modifiableText:
-      return (textctrl) ? textctrl->GetValue() : "";      
+      return (textctrl != NULL) ? textctrl->GetValue() : "";      
       break;
    case choice:
-      return (choicectrl) ? choicectrl->GetStringSelection() : "";
+      return (choicectrl != NULL) ? choicectrl->GetStringSelection() : "";
       break;      
    }
    return "";