X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ea1246ba6783b30d5bc0877720f976b4dc9e5b9..d8af1bf97d364e0f499fb509cb9639d040b52186:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index 33ae0bf486..8c19a070ec 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -262,9 +262,9 @@ private: std::advance( i, idx ); \ return compatibility_iterator( this, i ); \ } \ - compatibility_iterator operator[](size_t idx) const \ + elT operator[](size_t idx) const \ { \ - return Item(idx); \ + return Item(idx).GetData(); \ } \ \ compatibility_iterator GetFirst() const \