]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for ANSI build
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Mar 2009 12:14:14 +0000 (12:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Mar 2009 12:14:14 +0000 (12:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textentry.cpp

index 7c9b9e8dee6f707f1d82a04aecc807f87bfd8bb9..20abc5559b2b741c34d020673d316c20608a8b14 100644 (file)
@@ -107,7 +107,8 @@ wxString wxTextEntry::DoGetValue() const
 {
     const wxGtkString value(gtk_editable_get_chars(GetEditable(), 0, -1));
 
-    return wxGTK_CONV_BACK_FONT(value, GetEditableWindow()->GetFont());
+    return wxGTK_CONV_BACK_FONT(value,
+            const_cast<wxTextEntry *>(this)->GetEditableWindow()->GetFont());
 }
 
 void wxTextEntry::Remove(long from, long to)
@@ -318,7 +319,7 @@ void wxTextEntry::SendMaxLenEvent()
     // generating a dummy wxEVT_COMMAND_TEXT_UPDATED event
     //IgnoreNextTextUpdate();
 
-    wxWindow * const win = const_cast<wxWindow *>(GetEditableWindow());
+    wxWindow * const win = GetEditableWindow();
     wxCommandEvent event(wxEVT_COMMAND_TEXT_MAXLEN, win->GetId());
     event.SetEventObject(win);
     event.SetString(GetValue());