]> git.saurik.com Git - wxWidgets.git/commitdiff
made operator[](int n) const #ifdef _WXMSW__
authorKarsten Ballüder <ballueder@usa.net>
Wed, 25 Nov 1998 14:34:16 +0000 (14:34 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Wed, 25 Nov 1998 14:34:16 +0000 (14:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index aaf3d9f5532dc50fd3329e76d543a3896a4a5d17..b02cff173d69462dc6f2b13a420379415c965d11 100644 (file)
@@ -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]; }