X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd307ee1f13834bdfe43a0964db657bcd860142..bab537dc3777d39314b28424890ac8048efcf49f:/include/wx/os2/choice.h diff --git a/include/wx/os2/choice.h b/include/wx/os2/choice.h index f124982646..f2c7efe954 100644 --- a/include/wx/os2/choice.h +++ b/include/wx/os2/choice.h @@ -28,7 +28,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxChoiceNameStr) { Create(parent, id, pos, size, n, choices, style, validator, name); @@ -39,7 +41,9 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxChoiceNameStr); // Implement base class virtuals @@ -66,7 +70,7 @@ protected: virtual wxClientData* DoGetItemClientObject( int n ) const; // OS2 implementation - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);