From a09b0e2357f2ecf798cf4ca9c6d253c1ef1b114e Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 1 Nov 2022 17:25:07 +0100 Subject: Remove reversal of children in Fl_Group::clear() See implementation note in src/Fl_Group.cxx: Fl_Group::clear(). --- src/Fl_Group.cxx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/Fl_Group.cxx') diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index aa663919f..f5a2d02ea 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -389,22 +389,22 @@ void Fl_Group::clear() { if (contains(pushed)) pushed = this; // set it to be the group, if it's a child Fl::pushed(this); // for fl_fix_focus etc. - // okay, now it is safe to destroy the children: - -#define REVERSE_CHILDREN -#ifdef REVERSE_CHILDREN - // Reverse the order of the children. Doing this and deleting - // always the last child is much faster than the other way around. - if (children_ > 1) { - Fl_Widget *temp; - Fl_Widget **a = (Fl_Widget**)array(); - for (int i=0,j=children_-1; i