changeset 4642:48aa85639a33

cppcheck: ignored return value. It wasn't necessary! ;)
author Jorge Arellano Cid <jcid@dillo.org>
date Di, 12 Jul 2016 15:08:50 -0400
parents 7f807ca63a01
children ec2b93780dae
files src/ui.cc src/ui.hh
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Di Jul 12 14:40:29 2016 -0400
+++ b/src/ui.cc	Di Jul 12 15:08:50 2016 -0400
@@ -508,7 +508,7 @@
  * Create the "File" menu
  * Static function for File menu callbacks.
  */
-Fl_Widget *UI::make_filemenu_button()
+void UI::make_filemenu_button()
 {
    CustButton *btn;
    int w = 0, h = 0, padding;
@@ -529,7 +529,6 @@
    btn->clear_visible_focus();
    if (!prefs.show_filemenu)
       btn->hide();
-   return btn;
 }
 
 
--- a/src/ui.hh	Di Jul 12 14:40:29 2016 -0400
+++ b/src/ui.hh	Di Jul 12 15:08:50 2016 -0400
@@ -146,7 +146,7 @@
    void make_location(int ww);
    void make_progress_bars(int wide, int thin_up);
    void make_menubar(int x, int y, int w, int h);
-   Fl_Widget *make_filemenu_button();
+   void make_filemenu_button();
    void make_panel(int ww);
    void make_status_bar(int ww, int wh);