diff options
author | David Robillard <d@drobilla.net> | 2020-02-09 14:34:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-09 14:34:20 +0100 |
commit | af5ec4bdda21e9a2f76f22050216a0b1cbbed575 (patch) | |
tree | f93ddc033b70297abb472f7e28a06f9e936cf0ee /src/UIFile.hpp | |
parent | c321c02a6b9c67b4b106e36a77167ee279b9ef78 (diff) | |
download | patchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.tar.gz patchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.tar.bz2 patchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.zip |
Format all code with clang-format
This configuration tries to get as close to the previous style as possible so
the changes aren't too dramatic. It's still far from ideal and the code could
use some adaptation, but this makes things much easier to work on.
Diffstat (limited to 'src/UIFile.hpp')
-rw-r--r-- | src/UIFile.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/UIFile.hpp b/src/UIFile.hpp index 343b1a6..72dd48a 100644 --- a/src/UIFile.hpp +++ b/src/UIFile.hpp @@ -20,7 +20,7 @@ #include "patchage_config.h" #ifdef PATCHAGE_BINLOC -# include "binary_location.h" +# include "binary_location.h" #endif #include <gtkmm/builder.h> @@ -30,16 +30,19 @@ #include <sstream> #include <string> -class UIFile { +class UIFile +{ public: - inline static bool is_readable(const std::string& filename) { + inline static bool is_readable(const std::string& filename) + { std::ifstream fs(filename.c_str()); - const bool fail = fs.fail(); + const bool fail = fs.fail(); fs.close(); return !fail; } - static Glib::RefPtr<Gtk::Builder> open(const std::string& base_name) { + static Glib::RefPtr<Gtk::Builder> open(const std::string& base_name) + { std::string ui_filename; #ifdef PATCHAGE_BINLOC const std::string bundle = bundle_location(); |