diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 23:33:21 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | efc9d0e382d34aba56c1bd561022a718714166bd (patch) | |
tree | fdf9286d7ba9338cfedceb599357f29877bfc484 | |
parent | f3df1f1301f0c013e9edef8734ad63cbf330dbbd (diff) | |
download | ingen-efc9d0e382d34aba56c1bd561022a718714166bd.tar.gz ingen-efc9d0e382d34aba56c1bd561022a718714166bd.tar.bz2 ingen-efc9d0e382d34aba56c1bd561022a718714166bd.zip |
Add missing braces
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/gui/BreadCrumbs.hpp | 3 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.hpp | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy index 3f605635..3988a65e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,7 +1,6 @@ Checks: > *, -*avoid-c-arrays, - -*braces-around-statements, -*magic-numbers, -*move-const-arg, -*narrowing-conversions, diff --git a/src/gui/BreadCrumbs.hpp b/src/gui/BreadCrumbs.hpp index f359b971..803a72f4 100644 --- a/src/gui/BreadCrumbs.hpp +++ b/src/gui/BreadCrumbs.hpp @@ -92,8 +92,9 @@ private: lab->show(); add(*lab); - if (_view && _view->graph()->path() != path) + if (_view && _view->graph()->path() != path) { _view.reset(); + } } private: diff --git a/src/gui/GraphTreeWindow.hpp b/src/gui/GraphTreeWindow.hpp index c1ea53c2..1e748be7 100644 --- a/src/gui/GraphTreeWindow.hpp +++ b/src/gui/GraphTreeWindow.hpp @@ -106,8 +106,9 @@ public: bool on_button_press_event(GdkEventButton* ev) override { bool ret = Gtk::TreeView::on_button_press_event(ev); - if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) + if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) { _window->show_graph_menu(ev); + } return ret; } |