X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a3e402c11cee61059e515e8a82d52fe285e69b7..28d52eed36a2b4ee6ea36b3c5d4861b3ea292074:/include/wx/buffer.h diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 67d23526d6..afc0776994 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -54,6 +54,7 @@ public: } operator const char *() const { return m_str; } + char operator[](size_t n) const { return m_str[n]; } private: char *m_str; @@ -98,7 +99,8 @@ public: } operator const wchar_t *() const { return m_wcs; } - + wchar_t operator[](size_t n) const { return m_wcs[n]; } + private: wchar_t *m_wcs; };