X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0078f87f4032e82b755dd47327154c4761dea7ee..e9e4acc5197ac49259b9a39468c5931b4459d87f:/include/wx/valtext.h diff --git a/include/wx/valtext.h b/include/wx/valtext.h index c879505abc..418c5d01bb 100644 --- a/include/wx/valtext.h +++ b/include/wx/valtext.h @@ -12,7 +12,7 @@ #ifndef _WX_VALTEXTH__ #define _WX_VALTEXTH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "valtext.h" #endif @@ -95,6 +95,14 @@ protected: return TRUE; } + +private: +// Cannot use +// DECLARE_NO_COPY_CLASS(wxTextValidator) +// because copy constructor is explicitly declared above; +// but no copy assignment operator is defined, so declare +// it private to prevent the compiler from defining it: + wxTextValidator& operator=(const wxTextValidator&); }; #endif