summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/toolbar')
-rw-r--r--src/ui/toolbar/gradient-toolbar.cpp2
-rw-r--r--src/ui/toolbar/select-toolbar.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/toolbar/gradient-toolbar.cpp b/src/ui/toolbar/gradient-toolbar.cpp
index f98d3f25b..60779f03a 100644
--- a/src/ui/toolbar/gradient-toolbar.cpp
+++ b/src/ui/toolbar/gradient-toolbar.cpp
@@ -943,7 +943,7 @@ GradientToolbar::selection_changed(Inkscape::Selection * /*selection*/)
_stop_cb->set_sensitive( gr_selected && !gr_multi);
- int stop = update_stop_list (gr_selected, nullptr, gr_multi);
+ update_stop_list (gr_selected, nullptr, gr_multi);
select_stop_by_draggers(gr_selected, ev);
}
diff --git a/src/ui/toolbar/select-toolbar.cpp b/src/ui/toolbar/select-toolbar.cpp
index 8d6805487..e8fc61bc9 100644
--- a/src/ui/toolbar/select-toolbar.cpp
+++ b/src/ui/toolbar/select-toolbar.cpp
@@ -64,8 +64,8 @@ SelectToolbar::SelectToolbar(SPDesktop *desktop) :
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- auto select_all_button = add_toolbutton_for_verb(SP_VERB_EDIT_SELECT_ALL);
- auto select_all_in_all_layers_button = add_toolbutton_for_verb(SP_VERB_EDIT_SELECT_ALL_IN_ALL_LAYERS);
+ add_toolbutton_for_verb(SP_VERB_EDIT_SELECT_ALL);
+ add_toolbutton_for_verb(SP_VERB_EDIT_SELECT_ALL_IN_ALL_LAYERS);
auto deselect_button = add_toolbutton_for_verb(SP_VERB_EDIT_DESELECT);
_context_items.push_back(deselect_button);