fixed wxCStrData::operator[] to use wxString::operator[] instead of at()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2612,7 +2612,9 @@ inline wxUniChar wxCStrData::operator*() const
|
|||||||
|
|
||||||
inline wxUniChar wxCStrData::operator[](size_t n) const
|
inline wxUniChar wxCStrData::operator[](size_t n) const
|
||||||
{
|
{
|
||||||
return m_str->at(m_offset + n);
|
// NB: we intentionally use operator[] and not at() here because the former
|
||||||
|
// works for the terminating NUL while the latter does not
|
||||||
|
return (*m_str)[m_offset + n];
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user