diff --git a/include/wx/fdrepdlg.h b/include/wx/fdrepdlg.h index cbca13b294..90f0adb8d9 100644 --- a/include/wx/fdrepdlg.h +++ b/include/wx/fdrepdlg.h @@ -67,8 +67,8 @@ public: wxFindReplaceData(wxUint32 flags) { Init(); SetFlags(flags); } // accessors - const wxString& GetFindString() { return m_FindWhat; } - const wxString& GetReplaceString() { return m_ReplaceWith; } + const wxString& GetFindString() const { return m_FindWhat; } + const wxString& GetReplaceString() const { return m_ReplaceWith; } int GetFlags() const { return m_Flags; } diff --git a/interface/wx/fdrepdlg.h b/interface/wx/fdrepdlg.h index ca61b13e16..fa9d16c4ac 100644 --- a/interface/wx/fdrepdlg.h +++ b/interface/wx/fdrepdlg.h @@ -130,7 +130,7 @@ public: /** Get the string to find. */ - const wxString& GetFindString(); + const wxString& GetFindString() const; /** Get the combination of @c wxFindReplaceFlags values. @@ -140,7 +140,7 @@ public: /** Get the replacement string. */ - const wxString& GetReplaceString(); + const wxString& GetReplaceString() const; /** Set the string to find (used as initial value by the dialog).