]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
Get/Set LayoutDirection
[wxWidgets.git] / include / wx / list.h
index 33ae0bf486b36ac6130b413a54a0cdccba03ab21..8c19a070ec5fe9b705d36978a25be2d4805dfb42 100644 (file)
@@ -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                               \