From 469fae29fa0c2670c46252ffedaf59a526225fe5 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 3 Jul 2004 13:28:15 +0000 Subject: [PATCH] wxbConfigPanel : Fixed ?: operator cast problem with gcc 2.95. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1454 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/CHANGELOG | 3 +++ bacula/src/wx-console/wxbconfigpanel.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bacula/src/wx-console/CHANGELOG b/bacula/src/wx-console/CHANGELOG index 702bd49410..2d31e0e75c 100644 --- a/bacula/src/wx-console/CHANGELOG +++ b/bacula/src/wx-console/CHANGELOG @@ -1,3 +1,6 @@ +03-07-2004 : + - wxbConfigPanel : Fixed ?: operator cast problem with gcc 2.95. + 25-06-2004 : - wxbRestorePanel : Fix file size truncated if >100mb. diff --git a/bacula/src/wx-console/wxbconfigpanel.cpp b/bacula/src/wx-console/wxbconfigpanel.cpp index 793f03418f..b57530e349 100644 --- a/bacula/src/wx-console/wxbconfigpanel.cpp +++ b/bacula/src/wx-console/wxbconfigpanel.cpp @@ -88,13 +88,13 @@ wxString wxbConfigParam::GetTitle() { wxString wxbConfigParam::GetValue() { switch (type) { case text: - return (statictext != NULL) ? statictext->GetLabel() : ""; + return (statictext != NULL) ? statictext->GetLabel() : wxString(""); break; case modifiableText: - return (textctrl != NULL) ? textctrl->GetValue() : ""; + return (textctrl != NULL) ? textctrl->GetValue() : wxString(""); break; case choice: - return (choicectrl != NULL) ? choicectrl->GetStringSelection() : ""; + return (choicectrl != NULL) ? choicectrl->GetStringSelection() : wxString(""); break; } return ""; -- 2.39.5