From af5ec4bdda21e9a2f76f22050216a0b1cbbed575 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Feb 2020 14:34:20 +0100 Subject: 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. --- src/UIFile.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/UIFile.hpp') 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 @@ -30,16 +30,19 @@ #include #include -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 open(const std::string& base_name) { + static Glib::RefPtr open(const std::string& base_name) + { std::string ui_filename; #ifdef PATCHAGE_BINLOC const std::string bundle = bundle_location(); -- cgit v1.2.1