summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-09 14:34:20 +0100
committerDavid Robillard <d@drobilla.net>2020-02-09 14:34:20 +0100
commitaf5ec4bdda21e9a2f76f22050216a0b1cbbed575 (patch)
treef93ddc033b70297abb472f7e28a06f9e936cf0ee /src/main.cpp
parentc321c02a6b9c67b4b106e36a77167ee279b9ef78 (diff)
downloadpatchage-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/main.cpp')
-rw-r--r--src/main.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 80d400d..5a8d6be 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -15,16 +15,14 @@
*/
#ifdef __APPLE__
+# include "binary_location.h"
-#include "binary_location.h"
+# include <gtk/gtkrc.h>
-#include <gtk/gtkrc.h>
-
-#include <unistd.h>
-
-#include <cstdlib>
-#include <string>
+# include <unistd.h>
+# include <cstdlib>
+# include <string>
#endif
#include "Patchage.hpp"
@@ -78,13 +76,13 @@ main(int argc, char** argv)
try {
- Glib::thread_init();
+ Glib::thread_init();
- Gtk::Main app(argc, argv);
+ Gtk::Main app(argc, argv);
- Patchage patchage(argc, argv);
- app.run(*patchage.window());
- patchage.save();
+ Patchage patchage(argc, argv);
+ app.run(*patchage.window());
+ patchage.save();
} catch (std::exception& e) {
std::cerr << "patchage: error: " << e.what() << std::endl;