aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2016-07-12 15:08:50 -0400
committerJorge Arellano Cid <jcid@dillo.org>2016-07-12 15:08:50 -0400
commit3f995b03c6fd112bbb8d4a25070ed6a07f126cf5 (patch)
tree5de9d7f87209a60bd21e1c35d99b16aea53d8023 /src
parent0856f155988da7dfc10eee25157525466ab32f20 (diff)
cppcheck: ignored return value.
It wasn't necessary! ;)
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc3
-rw-r--r--src/ui.hh2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 60586d88..4239b4e6 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -508,7 +508,7 @@ void UI::make_progress_bars(int wide, int thin_up)
* 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 @@ Fl_Widget *UI::make_filemenu_button()
btn->clear_visible_focus();
if (!prefs.show_filemenu)
btn->hide();
- return btn;
}
diff --git a/src/ui.hh b/src/ui.hh
index e345cde9..3fa4eb99 100644
--- a/src/ui.hh
+++ b/src/ui.hh
@@ -146,7 +146,7 @@ class UI : public CustGroupVertical {
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);