*
* Nicolas Boichat, April 2004
*
+ * Version $Id$
*/
/*
Copyright (C) 2004 Kern Sibbald and John Walker
wxString wxbConfigParam::GetValue() {
switch (type) {
case text:
- return (statictext) ? statictext->GetLabel() : "";
+ return (statictext != NULL) ? statictext->GetLabel() : wxString("");
break;
case modifiableText:
- return (textctrl) ? textctrl->GetValue() : "";
+ return (textctrl != NULL) ? textctrl->GetValue() : wxString("");
break;
case choice:
- return (choicectrl) ? choicectrl->GetStringSelection() : "";
+ return (choicectrl != NULL) ? choicectrl->GetStringSelection() : wxString("");
break;
}
return "";
void wxbConfigPanel::ClearRowChoices(const char* title) {
int i;
if ((i = FindRow(title)) > -1) {
- return (*config)[i].Clear();
+ (*config)[i].Clear();
}
}
void wxbConfigPanel::AddRowChoice(const char* title, wxString value) {
int i;
if ((i = FindRow(title)) > -1) {
- return (*config)[i].Add(value);
+ (*config)[i].Add(value);
}
}