]> git.saurik.com Git - wxWidgets.git/commitdiff
modification to AXP hack
authorKarsten Ballüder <ballueder@usa.net>
Thu, 4 Nov 1999 13:02:26 +0000 (13:02 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 4 Nov 1999 13:02:26 +0000 (13:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 1ceea75a1c70603af8cca30eed679ba58ade2ed7..9cdfb05f21826141628600bb4a7293fecc01e982 100644 (file)
@@ -377,16 +377,15 @@ public:
     // operator version of GetChar
     wxChar  operator[](int n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
-    // This is a rather ugly hack, but needed to resolve overloading
-    // conflicts on the AXP architecture:
-#ifdef __alpha__
-    // operator version of GetChar
-    wxChar  operator[](unsigned int n) const
-      { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
-#endif
-    // operator version of GetWritableChar
+
+    // operator version of GetWriteableChar
     wxChar& operator[](size_t n)
       { ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }
+#ifdef __alpha__
+    // operator version of GetWriteableChar
+    wxChar&  operator[](unsigned int n)
+      { ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }
+#endif
 
     // implicit conversion to C string
     operator const wxChar*() const { return m_pchData; }