From b9fc7b7fddcfd8673235ac09aba2da632d884f5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Wed, 25 Nov 1998 14:34:16 +0000 Subject: [PATCH] made operator[](int n) const #ifdef _WXMSW__ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 ++ 1 file changed, 2 insertions(+) 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]; } -- 2.50.0