diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 15:26:48 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | 15b3b0e9f8823752f80c7e597a70749813e61c79 (patch) | |
tree | 3f324c6e2a455be8b929456dadbf06520889d435 /src/gui/WidgetFactory.cpp | |
parent | d6a9571641bcb34acb3521feb08eea33195fd9ca (diff) | |
download | ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.gz ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.bz2 ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.zip |
Always use braces
Diffstat (limited to 'src/gui/WidgetFactory.cpp')
-rw-r--r-- | src/gui/WidgetFactory.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/WidgetFactory.cpp b/src/gui/WidgetFactory.cpp index d77bc7d7..71db9ff4 100644 --- a/src/gui/WidgetFactory.cpp +++ b/src/gui/WidgetFactory.cpp @@ -43,8 +43,9 @@ WidgetFactory::find_ui_file() { // Try file in bundle (directory where executable resides) ui_filename = Ingen::bundle_file_path("ingen_gui.ui"); - if (is_readable(ui_filename)) + if (is_readable(ui_filename)) { return; + } // Try ENGINE_UI_PATH from the environment const char* const env_path = getenv("INGEN_UI_PATH"); @@ -55,8 +56,9 @@ WidgetFactory::find_ui_file() // Try the default system installed path ui_filename = Ingen::data_file_path("ingen_gui.ui"); - if (is_readable(ui_filename)) + if (is_readable(ui_filename)) { return; + } throw std::runtime_error((fmt("Unable to find ingen_gui.ui in %1%\n") % INGEN_DATA_DIR).str()); |