X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ea1246ba6783b30d5bc0877720f976b4dc9e5b9..4e2251ecd324ba89c486434485efcb1d32ee7dca:/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 \