diff options
| author | Matthias Melcher <git@matthiasm.com> | 2018-12-27 13:05:35 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2018-12-27 13:05:35 +0100 |
| commit | 75eefbcd42e7117de110f1d77e892912a24fc0a4 (patch) | |
| tree | 65063dcd8a49a0c61fa1995acc3f91f9aaf902af /src/Fl_Menu.cxx | |
| parent | 5c7118f8d9a4a89742c33d411e5f207b9108b32e (diff) | |
Fixing some minor lint, found by Pavel Shlyak using PVS studio
Diffstat (limited to 'src/Fl_Menu.cxx')
| -rw-r--r-- | src/Fl_Menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index b51b4e040..3ab303dea 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -533,7 +533,7 @@ int menuwindow::find_selected(int mx, int my) { if (my < 0 || my >= h()) return -1; if (!itemheight) { // menubar int xx = 3; int n = 0; - const Fl_Menu_Item* m = menu ? menu->first() : 0; + const Fl_Menu_Item* m = menu->first(); for (; ; m = m->next(), n++) { if (!m->text) return -1; xx += m->measure(0, button) + 16; |
