]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
Do not derive wxCursor from wxBitmap, plus misc cleanup.
[wxWidgets.git] / src / motif / radiobox.cpp
index 94708cf8bbf87e4febb80e70a005673f54542e5f..98368633fc2cb61c6c1f1701dbeaff2880ba0e54 100644 (file)
@@ -146,7 +146,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
     {
         wxString str(wxStripMenuCodes(choices[i]));
         m_radioButtonLabels[i] = str;
-        m_radioButtons[i] = (WXWidget) XtVaCreateManagedWidget ((char*) (const char*) str,
+        m_radioButtons[i] = (WXWidget) XtVaCreateManagedWidget (wxConstCast(str.c_str(), char),
 #if wxUSE_GADGETS
                             xmToggleButtonGadgetClass, radioBoxWidget,
 #else