summaryrefslogtreecommitdiff
path: root/fluid/Fl_Widget_Type.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-24 17:56:51 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-24 17:56:51 +0200
commiteb545c981bc8835df1b0bfcef7f5d8ee50433acb (patch)
treeda02462eefd7527cedadfae6728e2e3263d98ee5 /fluid/Fl_Widget_Type.cxx
parent1fbcbee107dbe6c48a14aca3d85d0c5e2dfe6436 (diff)
Fluid: replace 'FL_WINDOW+1' with 'FL_DOUBLE_WINDOW'
Note: 'FL_DOUBLE_WINDOW' *is* currently defined as 'FL_WINDOW+1'. This commit doesn't change real code but prevents potential bugs in the future if one of these constants would be changed.
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
-rw-r--r--fluid/Fl_Widget_Type.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx
index aaa96883f..4048933bc 100644
--- a/fluid/Fl_Widget_Type.cxx
+++ b/fluid/Fl_Widget_Type.cxx
@@ -1,7 +1,7 @@
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2023 by Bill Spitzak and others.
+// Copyright 1998-2024 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
@@ -64,7 +64,7 @@ const char* subclassname(Fl_Type* l) {
const char* c = p->subclass();
if (c) return c;
if (l->is_class()) return "Fl_Group";
- if (p->o->type() == FL_WINDOW+1) return "Fl_Double_Window";
+ if (p->o->type() == FL_DOUBLE_WINDOW) return "Fl_Double_Window";
if (p->id() == ID_Input) {
if (p->o->type() == FL_FLOAT_INPUT) return "Fl_Float_Input";
if (p->o->type() == FL_INT_INPUT) return "Fl_Int_Input";