diff --git a/include/wx/string.h b/include/wx/string.h index f90164c885..1db45300c4 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -686,7 +686,7 @@ public: size_t find(char ch, size_t nStart = 0) const; // wxWin compatibility - inline bool Contains(const wxString& str) { return Find(str) != -1; } + inline bool Contains(const wxString& str) const { return Find(str) != -1; } //@}