From: Karsten Ballüder Date: Wed, 25 Nov 1998 14:34:16 +0000 (+0000) Subject: made operator[](int n) const #ifdef _WXMSW__ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b9fc7b7fddcfd8673235ac09aba2da632d884f5b made operator[](int n) const #ifdef _WXMSW__ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index aaf3d9f553..b02cff173d 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -306,9 +306,11 @@ public: /// operator version of GetChar char operator[](size_t n) const { ASSERT_VALID_INDEX( n ); return m_pchData[n]; } +#ifdef __WXMSW__ /// operator version of GetChar char operator[](int n) const { ASSERT_VALID_INDEX( n ); return m_pchData[n]; } +#endif /// operator version of GetWritableChar char& operator[](size_t n) { ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }