diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 14:02:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | c4d7cb7a132a59804a2bb1fc0e5ef3e676dc5431 (patch) | |
tree | 5e0ea075019fc3d3d9ad47a84ce63d140dd038b7 | |
parent | 2539411f2fd0f73b57bd3a8785e10228b32b3c93 (diff) | |
download | ingen-c4d7cb7a132a59804a2bb1fc0e5ef3e676dc5431.tar.gz ingen-c4d7cb7a132a59804a2bb1fc0e5ef3e676dc5431.tar.bz2 ingen-c4d7cb7a132a59804a2bb1fc0e5ef3e676dc5431.zip |
Fix multiple declarations on a single line
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/client/ClientStore.cpp | 5 | ||||
-rw-r--r-- | src/gui/GraphCanvas.cpp | 8 |
3 files changed, 10 insertions, 4 deletions
diff --git a/.clang-tidy b/.clang-tidy index 141a0bc1..3e13f36e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -76,7 +76,6 @@ Checks: > -readability-convert-member-functions-to-static, -readability-else-after-return, -readability-implicit-bool-conversion, - -readability-isolate-declaration, -readability-make-member-function-const, -readability-named-parameter, -readability-redundant-member-init, diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index 64489b49..e494e874 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -245,7 +245,10 @@ ClientStore::operator()(const Put& msg) const auto& uri = msg.uri; const auto& properties = msg.properties; - bool is_graph, is_block, is_port, is_output; + bool is_block = false; + bool is_graph = false; + bool is_output = false; + bool is_port = false; Resource::type(uris(), properties, is_graph, is_block, is_port, is_output); diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index bd75c352..b89a2ddb 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -718,7 +718,10 @@ GraphCanvas::paste() } // Find canvas paste origin based on pointer position - int widget_point_x, widget_point_y, scroll_x, scroll_y; + int widget_point_x = 0; + int widget_point_y = 0; + int scroll_x = 0; + int scroll_y = 0; widget().get_pointer(widget_point_x, widget_point_y); get_scroll_offsets(scroll_x, scroll_y); const int paste_x = widget_point_x + scroll_x + (20.0f * _paste_count); @@ -816,7 +819,8 @@ GraphCanvas::menu_add_port(const string& sym_base, const URI& type, bool is_output) { - string sym, name; + string sym; + string name; generate_port_name(sym_base, sym, name_base, name); const Raul::Path& path = _graph->path().child(Raul::Symbol(sym)); |