From c13c9657a402c546d36d51628aec65903deb6605 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Tue, 24 Dec 2002 18:37:10 +0000 Subject: [PATCH] Use wxXmString instead of XmString. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/choice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index 79baba751a..ed99311e79 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -192,11 +192,10 @@ int wxChoice::DoAppend(const wxString& item) { XtVaSetValues ((Widget) m_buttonWidget, XmNmenuHistory, w, NULL); Widget label = XmOptionButtonGadget ((Widget) m_buttonWidget); - XmString text = XmStringCreateSimple ((char*) (const char*) item); + wxXmString text( item ); XtVaSetValues (label, - XmNlabelString, text, + XmNlabelString, text(), NULL); - XmStringFree (text); } m_stringList.Add(item); m_noStrings ++;