]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
always use wxString::operator[](size_t) - wxWin doesn't compile without it anyhow
[wxWidgets.git] / include / wx / string.h
index 576d9661663cd54ed4e95b8d2a7015b671a398e7..dbbb42cf8f1665d27c867fa04efed7de2535592c 100644 (file)
@@ -370,14 +370,9 @@ public:
     wxChar& Last()
       { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
 
-    // under Unix it is tested with configure, assume it works on other
-    // platforms (there might be overloading problems if size_t and int are
-    // the same type)
-#if !defined(__UNIX__) || wxUSE_SIZE_T_STRING_OPERATOR
     // operator version of GetChar
     wxChar  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
-#endif
 
     // operator version of GetChar
     wxChar  operator[](int n) const