From: Karsten Ballüder Date: Thu, 4 Nov 1999 09:27:36 +0000 (+0000) Subject: added operator[](unsigned int) const -- testing it now on Linux/axp, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5367e67d63cf12c1344c77e4060668d063a0a872 added operator[](unsigned int) const -- testing it now on Linux/axp, solaris, linux/i386 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index cc74023016..d9d59a835c 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -377,6 +377,9 @@ public: // operator version of GetChar wxChar operator[](int n) const { ASSERT_VALID_INDEX( n ); return m_pchData[n]; } + // operator version of GetChar + wxChar operator[](unsigned int n) const + { ASSERT_VALID_INDEX( n ); return m_pchData[n]; } // operator version of GetWritableChar wxChar& operator[](size_t n) { ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }