add operator[] to our wxStringImpl (blind fix for wxMac buildbot build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -382,9 +382,11 @@ public:
|
|||||||
|
|
||||||
// lib.string.access
|
// lib.string.access
|
||||||
// return the character at position n
|
// return the character at position n
|
||||||
|
value_type operator[](size_type n) const { return m_pchData[n]; }
|
||||||
value_type at(size_type n) const
|
value_type at(size_type n) const
|
||||||
{ wxASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
{ wxASSERT_VALID_INDEX( n ); return m_pchData[n]; }
|
||||||
// returns the writable character at position n
|
// returns the writable character at position n
|
||||||
|
reference operator[](size_type n) { CopyBeforeWrite(); return m_pchData[n]; }
|
||||||
reference at(size_type n)
|
reference at(size_type n)
|
||||||
{
|
{
|
||||||
wxASSERT_VALID_INDEX( n );
|
wxASSERT_VALID_INDEX( n );
|
||||||
|
Reference in New Issue
Block a user