summaryrefslogtreecommitdiff
path: root/FL/Fl_Group.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Group.H')
-rw-r--r--FL/Fl_Group.H10
1 files changed, 5 insertions, 5 deletions
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 8e11adb01..3d33e4093 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -23,8 +23,6 @@
#include "Fl_Widget.H"
-#include <vector>
-
// Don't #include Fl_Rect.H because this would introduce lots
// of unnecessary dependencies on Fl_Rect.H
class Fl_Rect;
@@ -58,7 +56,9 @@ class Fl_Rect;
*/
class FL_EXPORT Fl_Group : public Fl_Widget {
- std::vector<Fl_Widget *>child_; // vector of children
+ Fl_Widget **child_; // array of children
+ int children_; // number of children
+ int children_alloc_; // allocated size of child_ array
Fl_Widget* savedfocus_;
Fl_Widget* resizable_;
Fl_Rect *bounds_; // remembered initial sizes of children
@@ -94,7 +94,7 @@ public:
/**
Returns how many child widgets the group has.
*/
- int children() const { return (int)child_.size(); }
+ int children() const { return children_; }
/**
Returns the n'th child.
@@ -240,7 +240,7 @@ public:
// Note: Doxygen docs in Fl_Widget.H to avoid redundancy.
Fl_Group* as_group() { return this; }
- Fl_Group const* as_group() const override { return this; }
+ Fl_Group const* as_group() const { return this; }
// back compatibility functions: