summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-21 19:57:50 +0100
committerMatthias Melcher <github@matthiasm.com>2025-11-21 19:57:50 +0100
commit56955a33a30662ce2dd621228abb9089c0a814fb (patch)
tree8cd7b41dd48ae028aa3713a96f188b977bf7dea7 /test
parent910c7d18ebb465cd58d13a5eb2bd03d7b9f414cd (diff)
Additional menu code cleanup.
Better variable names, More descriptive integer types.
Diffstat (limited to 'test')
-rw-r--r--test/menubar.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx
index 8295af8e1..067661cfa 100644
--- a/test/menubar.cxx
+++ b/test/menubar.cxx
@@ -228,12 +228,11 @@ void menu_location_cb(Fl_Widget* w, void* data)
smenubar = new Fl_Sys_Menu_Bar(0,0,0,30);
smenubar->menu(menu);
smenubar->callback(test_cb);
- }
- else { // switch to window menu bar
+ } else { // switch to window menu bar
menubar->copy(smenubar->menu());
delete smenubar;
menubar->show();
- }
+ }
}
#endif // HAS_MAC_APP_MENU