void wxWindow::SetLabel(const wxString& label)
{
- XtVaSetValues((Widget)GetMainWidget(), XmNtitle, label.mb_str(), NULL);
+ XtVaSetValues((Widget)GetMainWidget(), XmNtitle,
+ (const char*)label.mb_str(), NULL);
}
wxString wxWindow::GetLabel() const
{
- char *label;
+ char *label = NULL;
XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL);
return wxString(label);