diff --git a/include/wx/stringimpl.h b/include/wx/stringimpl.h index f3cd17cec2..00d24e2242 100644 --- a/include/wx/stringimpl.h +++ b/include/wx/stringimpl.h @@ -382,9 +382,11 @@ public: // lib.string.access // return the character at position n + value_type operator[](size_type n) const { return m_pchData[n]; } value_type at(size_type n) const { wxASSERT_VALID_INDEX( n ); return m_pchData[n]; } // returns the writable character at position n + reference operator[](size_type n) { CopyBeforeWrite(); return m_pchData[n]; } reference at(size_type n) { wxASSERT_VALID_INDEX( n );