From 15b3b0e9f8823752f80c7e597a70749813e61c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 15:26:48 -0500 Subject: Always use braces --- src/gui/App.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/gui/App.cpp') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index f67e4104..d9e8680c 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -149,9 +149,11 @@ App::run() // Run main iterations here until we're attached to the engine. Otherwise // with 'ingen -egl' we'd get a bunch of notifications about load // immediately before even knowing about the root graph or plugins) - while (!_connect_window->attached()) - if (_main->iteration()) + while (!_connect_window->attached()) { + if (_main->iteration()) { break; + } + } _main->run(); } @@ -351,8 +353,9 @@ void App::port_activity(Port* port) { std::pair inserted = _activity_ports.insert(make_pair(port, false)); - if (inserted.second) + if (inserted.second) { inserted.first->second = false; + } port->set_highlighted(true); } @@ -361,8 +364,9 @@ void App::activity_port_destroyed(Port* port) { ActivityPorts::iterator i = _activity_ports.find(port); - if (i != _activity_ports.end()) + if (i != _activity_ports.end()) { _activity_ports.erase(i); + } return; } @@ -402,8 +406,9 @@ App::register_callbacks() bool App::gtk_main_iteration() { - if (!_client) + if (!_client) { return false; + } if (_messages_window) { _messages_window->flush(); -- cgit v1.2.1