]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/listbox.h
it didn't compile at all...
[wxWidgets.git] / include / wx / os2 / listbox.h
index 81149bf414d45193d2de9c3518497751d25b61ce..4a5691fb7ba9b686cf72a0cba5bc18135a6535f8 100644 (file)
@@ -42,7 +42,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 = wxListBoxNameStr)
     {
         Create(parent, id, pos, size, n, choices, style, validator, name);
@@ -53,7 +59,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 = wxListBoxNameStr);
 
     virtual ~wxListBox();