trying with only an operator[] (int) and not (size_t)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -304,13 +304,13 @@ public:
|
|||||||
{ wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
|
{ wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
|
||||||
|
|
||||||
/// operator version of GetChar
|
/// operator version of GetChar
|
||||||
|
#if 0
|
||||||
char operator[](size_t n) const
|
char operator[](size_t n) const
|
||||||
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
||||||
#ifdef __WXMSW__
|
#endif
|
||||||
/// operator version of GetChar
|
/// operator version of GetChar
|
||||||
char operator[](int n) const
|
char operator[](int n) const
|
||||||
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
{ ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
||||||
#endif
|
|
||||||
/// operator version of GetWritableChar
|
/// operator version of GetWritableChar
|
||||||
char& operator[](size_t n)
|
char& operator[](size_t n)
|
||||||
{ ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }
|
{ ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }
|
||||||
|
Reference in New Issue
Block a user