]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/choice.h
fixes for wxFontMapper endless recursion
[wxWidgets.git] / include / wx / os2 / choice.h
index f124982646617ddf9c147e38283a06f5f10541c9..54eab34fa169277b819d4776cf1bec3cdf1b9613 100644 (file)
@@ -28,7 +28,13 @@ public:
              const wxSize& size = wxDefaultSize,
              int n = 0, const wxString choices[] = NULL,
              long style = 0,
+#if wxUSE_VALIDATORS
+#  if defined(__VISAGECPP__)
+             const wxValidator* validator = wxDefaultValidator,
+#  else
              const wxValidator& validator = wxDefaultValidator,
+#  endif
+#endif
              const wxString& name = wxChoiceNameStr)
     {
         Create(parent, id, pos, size, n, choices, style, validator, name);
@@ -39,7 +45,13 @@ public:
              const wxSize& size = wxDefaultSize,
              int n = 0, const wxString choices[] = NULL,
              long style = 0,
+#if wxUSE_VALIDATORS
+#  if defined(__VISAGECPP__)
+             const wxValidator* validator = wxDefaultValidator,
+#  else
              const wxValidator& validator = wxDefaultValidator,
+#  endif
+#endif
              const wxString& name = wxChoiceNameStr);
 
     // Implement base class virtuals