diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 22:05:51 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 22:05:51 +0200 |
commit | 407099d7a30d01799824c7d4f341e0095e752919 (patch) | |
tree | dfbfd05e00ebf98c625fb00c7bc2075077273221 /src/gui | |
parent | e0e437c0fd970103685db2f1d0c83a9c461ad87f (diff) | |
download | ingen-407099d7a30d01799824c7d4f341e0095e752919.tar.gz ingen-407099d7a30d01799824c7d4f341e0095e752919.tar.bz2 ingen-407099d7a30d01799824c7d4f341e0095e752919.zip |
WIP: Fix unused parameter warningsfix-unused-parameter-warnings
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphCanvas.cpp | 2 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.hpp | 7 | ||||
-rw-r--r-- | src/gui/LoadGraphWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/LoadPluginWindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/NodeModule.cpp | 2 | ||||
-rw-r--r-- | src/gui/Port.cpp | 2 | ||||
-rw-r--r-- | src/gui/Style.cpp | 4 | ||||
-rw-r--r-- | src/gui/WindowFactory.cpp | 2 | ||||
-rw-r--r-- | src/gui/ingen_gui.cpp | 2 | ||||
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 2 |
11 files changed, 17 insertions, 18 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 931cc23f..2f431030 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -320,7 +320,7 @@ GraphCanvas::add_plugin(SPtr<PluginModel> p) } void -GraphCanvas::remove_plugin(const URI& uri) +GraphCanvas::remove_plugin(const URI&) { // Flag menus as dirty so they will be rebuilt when needed next _menu_dirty = true; diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp index 2edf8a44..591a2b25 100644 --- a/src/gui/GraphTreeWindow.cpp +++ b/src/gui/GraphTreeWindow.cpp @@ -152,7 +152,7 @@ GraphTreeWindow::find_graph(Gtk::TreeModel::Children root, /** Show the context menu for the selected graph in the graphs treeview. */ void -GraphTreeWindow::show_graph_menu(GdkEventButton* ev) +GraphTreeWindow::show_graph_menu(GdkEventButton*) { Gtk::TreeModel::iterator active = _graph_tree_selection->get_selected(); if (active) { @@ -166,7 +166,7 @@ GraphTreeWindow::show_graph_menu(GdkEventButton* ev) void GraphTreeWindow::event_graph_activated(const Gtk::TreeModel::Path& path, - Gtk::TreeView::Column* col) + Gtk::TreeView::Column*) { Gtk::TreeModel::iterator active = _graph_treestore->get_iter(path); Gtk::TreeModel::Row row = *active; diff --git a/src/gui/GraphTreeWindow.hpp b/src/gui/GraphTreeWindow.hpp index 9ab05f94..09361661 100644 --- a/src/gui/GraphTreeWindow.hpp +++ b/src/gui/GraphTreeWindow.hpp @@ -95,10 +95,9 @@ protected: class GraphTreeView : public Gtk::TreeView { public: - GraphTreeView(BaseObjectType* cobject, - const Glib::RefPtr<Gtk::Builder>& xml) - : Gtk::TreeView(cobject) - , _window(NULL) + GraphTreeView(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>&) + : Gtk::TreeView(cobject) + , _window(NULL) {} void set_window(GraphTreeWindow* win) { _window = win; } diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp index a8bbd94a..a3b09e8f 100644 --- a/src/gui/LoadGraphWindow.cpp +++ b/src/gui/LoadGraphWindow.cpp @@ -216,7 +216,7 @@ LoadGraphWindow::cancel_clicked() Raul::Symbol LoadGraphWindow::symbol_from_filename(const Glib::ustring& filename) { - std::string symbol_str = Glib::path_get_basename(get_filename()); + std::string symbol_str = Glib::path_get_basename(filename); symbol_str = symbol_str.substr(0, symbol_str.find('.')); return Raul::Symbol::symbolify(symbol_str); } diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index 743c0f11..f00b1da4 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -157,7 +157,7 @@ LoadPluginWindow::name_changed() } void -LoadPluginWindow::name_cleared(Gtk::EntryIconPosition pos, const GdkEventButton* event) +LoadPluginWindow::name_cleared(Gtk::EntryIconPosition, const GdkEventButton*) { _search_entry->set_text(""); } @@ -317,8 +317,8 @@ LoadPluginWindow::add_plugin(SPtr<const PluginModel> plugin) ///// Event Handlers ////// void -LoadPluginWindow::plugin_activated(const Gtk::TreeModel::Path& path, - Gtk::TreeViewColumn* col) +LoadPluginWindow::plugin_activated(const Gtk::TreeModel::Path&, + Gtk::TreeViewColumn*) { add_clicked(); } diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 8605e91d..0220898c 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -410,7 +410,7 @@ NodeModule::set_control_values() } bool -NodeModule::on_double_click(GdkEventButton* event) +NodeModule::on_double_click(GdkEventButton*) { popup_gui(); return true; diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 60e11471..8c7d35eb 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -495,7 +495,7 @@ Port::property_changed(const URI& key, const Atom& value) } void -Port::property_removed(const URI& key, const Atom& value) +Port::property_removed(const URI& key, const Atom&) { const URIs& uris = _app.uris(); if (key == uris.lv2_minimum || key == uris.lv2_maximum) { diff --git a/src/gui/Style.cpp b/src/gui/Style.cpp index 3a122e45..77dbc8a2 100644 --- a/src/gui/Style.cpp +++ b/src/gui/Style.cpp @@ -58,7 +58,7 @@ Style::Style(App& app) * the default location. */ void -Style::load_settings(std::string filename) +Style::load_settings(std::string /*filename*/) { /* ... */ } @@ -67,7 +67,7 @@ Style::load_settings(std::string filename) * default location. */ void -Style::save_settings(std::string filename) +Style::save_settings(std::string /*filename*/) { /* ... */ } diff --git a/src/gui/WindowFactory.cpp b/src/gui/WindowFactory.cpp index c5f9c089..b2bcabb4 100644 --- a/src/gui/WindowFactory.cpp +++ b/src/gui/WindowFactory.cpp @@ -186,7 +186,7 @@ WindowFactory::new_graph_window(SPtr<const GraphModel> graph, } bool -WindowFactory::remove_graph_window(GraphWindow* win, GdkEventAny* ignored) +WindowFactory::remove_graph_window(GraphWindow* win, GdkEventAny*) { if (_graph_windows.size() <= 1) { return !_app.quit(win); diff --git a/src/gui/ingen_gui.cpp b/src/gui/ingen_gui.cpp index 441993f7..ffca6a2f 100644 --- a/src/gui/ingen_gui.cpp +++ b/src/gui/ingen_gui.cpp @@ -40,7 +40,7 @@ struct GUIModule : public Module { app = gui::App::create(world); } - void run(World* world) override { + void run(World*) override { app->run(); } diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 251c75e1..f094eee8 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -183,7 +183,7 @@ port_event(LV2UI_Handle handle, } static const void* -extension_data(const char* uri) +extension_data(const char*) { return nullptr; } |