Make wxFindReplaceData accessors const.

Closes #14755.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-10-17 15:45:20 +00:00
parent 81765ad4b8
commit 5475b39f53
2 changed files with 4 additions and 4 deletions

View File

@@ -67,8 +67,8 @@ public:
wxFindReplaceData(wxUint32 flags) { Init(); SetFlags(flags); } wxFindReplaceData(wxUint32 flags) { Init(); SetFlags(flags); }
// accessors // accessors
const wxString& GetFindString() { return m_FindWhat; } const wxString& GetFindString() const { return m_FindWhat; }
const wxString& GetReplaceString() { return m_ReplaceWith; } const wxString& GetReplaceString() const { return m_ReplaceWith; }
int GetFlags() const { return m_Flags; } int GetFlags() const { return m_Flags; }

View File

@@ -130,7 +130,7 @@ public:
/** /**
Get the string to find. Get the string to find.
*/ */
const wxString& GetFindString(); const wxString& GetFindString() const;
/** /**
Get the combination of @c wxFindReplaceFlags values. Get the combination of @c wxFindReplaceFlags values.
@@ -140,7 +140,7 @@ public:
/** /**
Get the replacement string. Get the replacement string.
*/ */
const wxString& GetReplaceString(); const wxString& GetReplaceString() const;
/** /**
Set the string to find (used as initial value by the dialog). Set the string to find (used as initial value by the dialog).