From 7d3793ce1d8cb26e7608bf859beca21359cec6e9 Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Thu, 5 Feb 2026 16:35:56 +0500 Subject: wip --- FL/Fl_Group.H | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'FL/Fl_Group.H') 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 - // 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::vectorchild_; // 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: -- cgit v1.2.3