]> git.saurik.com Git - wxWidgets.git/commitdiff
added operator[](unsigned int) const -- testing it now on Linux/axp,
authorKarsten Ballüder <ballueder@usa.net>
Thu, 4 Nov 1999 09:27:36 +0000 (09:27 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 4 Nov 1999 09:27:36 +0000 (09:27 +0000)
solaris, linux/i386

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

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