X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57c4d796c56bd48ce370240107f3e4c07e142985..47fc03d21ab5b2d88959b6650a0151fb2c241c30:/include/wx/os2/textctrl.h?ds=sidebyside

diff --git a/include/wx/os2/textctrl.h b/include/wx/os2/textctrl.h
index 56ba625ffa..7f819fe260 100644
--- a/include/wx/os2/textctrl.h
+++ b/include/wx/os2/textctrl.h
@@ -25,11 +25,7 @@ public:
                const wxSize& size = wxDefaultSize,
                long style = 0,
 #if wxUSE_VALIDATORS
-#  if defined(__VISAGECPP__)
-               const wxValidator* validator = wxDefaultValidator,
-#  else
                const wxValidator& validator = wxDefaultValidator,
-#  endif
 #endif
                const wxString& name = wxTextCtrlNameStr)
     {
@@ -42,11 +38,7 @@ public:
                 const wxSize& size = wxDefaultSize,
                 long style = 0,
 #if wxUSE_VALIDATORS
-#  if defined(__VISAGECPP__)
-                const wxValidator* validator = wxDefaultValidator,
-#  else
                 const wxValidator& validator = wxDefaultValidator,
-#  endif
 #endif
                 const wxString& name = wxTextCtrlNameStr);
 
@@ -154,7 +146,7 @@ protected:
     // limit is big enough)
     void AdjustSpaceLimit();
 
-    virtual wxSize DoGetBestSize();
+    virtual wxSize DoGetBestSize() const;
 
 private:
     DECLARE_EVENT_TABLE()