summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.hpp
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/PatchageCanvas.hpp
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/PatchageCanvas.hpp')
-rw-r--r--src/PatchageCanvas.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/PatchageCanvas.hpp b/src/PatchageCanvas.hpp
index ffe43ac..35d0abb 100644
--- a/src/PatchageCanvas.hpp
+++ b/src/PatchageCanvas.hpp
@@ -26,7 +26,7 @@
#include "ganv/Canvas.hpp"
#ifdef HAVE_ALSA
- #include <alsa/asoundlib.h>
+# include <alsa/asoundlib.h>
#endif
#include <map>
@@ -37,7 +37,8 @@ class Patchage;
class PatchageModule;
class PatchagePort;
-class PatchageCanvas : public Ganv::Canvas {
+class PatchageCanvas : public Ganv::Canvas
+{
public:
PatchageCanvas(Patchage* _app, int width, int height);
@@ -50,13 +51,12 @@ public:
PatchagePort* find_port_by_name(const std::string& client_name,
const std::string& port_name);
- void connect(Ganv::Node* port1,
- Ganv::Node* port2);
+ void connect(Ganv::Node* port1, Ganv::Node* port2);
- void disconnect(Ganv::Node* port1,
- Ganv::Node* port2);
+ void disconnect(Ganv::Node* port1, Ganv::Node* port2);
- void index_port(const PortID& id, PatchagePort* port) {
+ void index_port(const PortID& id, PatchagePort* port)
+ {
_port_index.insert(std::make_pair(id, port));
}
@@ -77,10 +77,10 @@ private:
bool on_connection_event(Ganv::Edge* c, GdkEvent* ev);
typedef std::map<const PortID, PatchagePort*> PortIndex;
- PortIndex _port_index;
+ PortIndex _port_index;
typedef std::multimap<const std::string, PatchageModule*> ModuleIndex;
- ModuleIndex _module_index;
+ ModuleIndex _module_index;
};
#endif // PATCHAGE_PATCHAGECANVAS_HPP