From 87c7fc6733c9fa1314b328836b51da5f12853802 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Jul 2008 22:11:06 +0000 Subject: [PATCH] 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 --- include/wx/stringimpl.h | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.49.0