diff options
Diffstat (limited to 'FL/Fl_Tree_Item_Array.H')
| -rw-r--r-- | FL/Fl_Tree_Item_Array.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/FL/Fl_Tree_Item_Array.H b/FL/Fl_Tree_Item_Array.H index 8bdf21afc..18527a8ef 100644 --- a/FL/Fl_Tree_Item_Array.H +++ b/FL/Fl_Tree_Item_Array.H @@ -5,6 +5,7 @@ #ifndef _FL_TREE_ITEM_ARRAY_H #define _FL_TREE_ITEM_ARRAY_H +#include <FL/Fl.H> #include "Fl_Export.H" class FL_EXPORT Fl_Tree_Item; // forward decl must *precede* first doxygen comment block @@ -66,11 +67,17 @@ public: return(_total); } /// Swap the two items at index positions \p ax and \p bx. +#if FLTK_ABI_VERSION >= 10302 + // NEW -- code moved to .cxx + void swap(int ax, int bx); +#else /*FLTK_ABI_VERSION*/ + // OLD void swap(int ax, int bx) { Fl_Tree_Item *asave = _items[ax]; _items[ax] = _items[bx]; _items[bx] = asave; } +#endif /*FLTK_ABI_VERSION*/ void clear(); void add(Fl_Tree_Item *val); void insert(int pos, Fl_Tree_Item *new_item); |
