From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Wed, 25 Apr 2007 12:36:28 +0000 (+0000)
Subject: compilation fix after c_str() changes
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b044829c47beb6e37d510d17f917106f5c9b0f29?ds=inline

compilation fix after c_str() changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/motif/combobox.cpp b/src/motif/combobox.cpp
index 201a8aa4ad..313dde7628 100644
--- a/src/motif/combobox.cpp
+++ b/src/motif/combobox.cpp
@@ -138,11 +138,12 @@ wxString wxComboBox::GetValue() const
 
 void wxComboBox::SetValue(const wxString& value)
 {
-    m_inSetValue = true;
     if( !value.empty() )
-        XmComboBoxSetString( (Widget)m_mainWidget,
-                             wxConstCast(value.c_str(), char) );
-    m_inSetValue = false;
+    {
+        m_inSetValue = true;
+        XmComboBoxSetString((Widget)m_mainWidget, value.char_str());
+        m_inSetValue = false;
+    }
 }
 
 void wxComboBox::SetString(unsigned int WXUNUSED(n), const wxString& WXUNUSED(s))
@@ -289,7 +290,7 @@ void wxComboBox::Replace(long from, long to, const wxString& value)
 {
     XmComboBoxReplace ((Widget) m_mainWidget, (XmTextPosition) from,
                        (XmTextPosition) to,
-                       wxConstCast(value.c_str(), char));
+                       value.char_str());
 }
 
 void wxComboBox::Remove(long from, long to)