diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-04-03 17:11:25 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-04-03 17:11:25 +0200 |
| commit | fb48bc22cca0adc38689ba7c96666ff772ab91a6 (patch) | |
| tree | a5321182bfd93a14a51c9f2de374dedef9b16a60 /src | |
| parent | c340c4a2bd8f2753945f226320af92e662d9b4b7 (diff) | |
Remove redundant Fl_Group::clear() from ~Fl_Scroll()
Fl_Group::clear() is called in Fl_Group's d'tor anyway.
Technically we don't need to remove hscrollbar and scrollbar because
they are destroyed (and thus removed from Fl_Group) before Fl_Group's
d'tor is executed but this is left for clarity and to guarantee the
order (see comment).
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Scroll.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Scroll.cxx b/src/Fl_Scroll.cxx index e11ad4cb1..e90809d1f 100644 --- a/src/Fl_Scroll.cxx +++ b/src/Fl_Scroll.cxx @@ -1,7 +1,7 @@ // // Fl_Scroll widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -41,7 +41,6 @@ void Fl_Scroll::clear() { Fl_Scroll::~Fl_Scroll() { remove(hscrollbar); // remove last child first remove(scrollbar); - Fl_Group::clear(); } /** Ensure the scrollbars are the last children. |
