]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed operator[] recursion
authorDavid Elliott <dfe@tgwbd.org>
Fri, 25 Jul 2003 13:56:29 +0000 (13:56 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 25 Jul 2003 13:56:29 +0000 (13:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index cddfe30b9a81804d6294b06c7f175c0ee1d0b355..0d8bcc184cfc8c24250def6a6467b4930f553528 100644 (file)
@@ -771,11 +771,11 @@ public:
 #ifndef wxSIZE_T_IS_UINT
     // operator version of GetChar
     wxChar operator[](unsigned int n) const
-      { return operator[](n); }
+      { return wxStringBase::operator[](n); }
 
     // operator version of GetWriteableChar
     wxChar& operator[](unsigned int n)
-      { return operator[](n); }
+      { return wxStringBase::operator[](n); }
 #endif // size_t != unsigned int
 
     // implicit conversion to C string