X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..3f480da37ca0840ddbe48b908d511d2e9fc20bf4:/include/wx/valtext.h?ds=sidebyside diff --git a/include/wx/valtext.h b/include/wx/valtext.h index f7ee50eec4..14af71c493 100644 --- a/include/wx/valtext.h +++ b/include/wx/valtext.h @@ -9,8 +9,8 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifndef __VALTEXTH__ -#define __VALTEXTH__ +#ifndef _WX_VALTEXTH__ +#define _WX_VALTEXTH__ #ifdef __GNUG__ #pragma interface "valtext.h" @@ -30,7 +30,7 @@ class WXDLLEXPORT wxTextValidator: public wxValidator { DECLARE_DYNAMIC_CLASS(wxTextValidator) public: - wxTextValidator(const long style = wxFILTER_NONE, wxString *val = NULL); + wxTextValidator(long style = wxFILTER_NONE, wxString *val = (wxString *) NULL); wxTextValidator(const wxTextValidator& val); ~wxTextValidator(); @@ -39,7 +39,7 @@ public: // if you're passing a reference to a validator. // Another possibility is to always pass a pointer to a new validator // (so the calling code can use a copy constructor of the relevant class). - virtual wxValidator *Clone(void) const { return new wxTextValidator(*this); } + virtual wxObject *Clone(void) const { return new wxTextValidator(*this); } bool Copy(const wxTextValidator& val); // Called when the value in the window must be validated. @@ -54,7 +54,7 @@ public: // ACCESSORS inline long GetStyle(void) const { return m_validatorStyle; } - inline void SetStyle(const long style) { m_validatorStyle = style; } + inline void SetStyle(long style) { m_validatorStyle = style; } void SetIncludeList(const wxStringList& list); inline wxStringList& GetIncludeList(void) { return m_includeList; }