summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-16 16:38:19 -0400
committerDavid Robillard <d@drobilla.net>2022-08-16 16:38:19 -0400
commit66e0bb76b40311245b9c59e2f3167e4e98027eba (patch)
treef40786256d86cf31b1705417f0bfa018c6230577
parente53d14cebf13698a987fabfb996806a566e90dca (diff)
downloadpatchage-66e0bb76b40311245b9c59e2f3167e4e98027eba.tar.gz
patchage-66e0bb76b40311245b9c59e2f3167e4e98027eba.tar.bz2
patchage-66e0bb76b40311245b9c59e2f3167e4e98027eba.zip
Fix whitespace
Apparently clang-format changed its mind about special member functions, and binary_location.h was just never formatted to begin with.
-rw-r--r--src/AlsaDriver.cpp4
-rw-r--r--src/CanvasModule.hpp4
-rw-r--r--src/CanvasPort.hpp4
-rw-r--r--src/ClientID.hpp4
-rw-r--r--src/Driver.hpp4
-rw-r--r--src/Drivers.hpp4
-rw-r--r--src/ILog.hpp4
-rw-r--r--src/JackLibDriver.cpp4
-rw-r--r--src/Patchage.hpp4
-rw-r--r--src/PortID.hpp4
-rw-r--r--src/Reactor.hpp4
-rw-r--r--src/TextViewLog.hpp4
-rw-r--r--src/Widget.hpp4
-rw-r--r--src/binary_location.h38
14 files changed, 45 insertions, 45 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index e20573a..fbe7779 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -43,10 +43,10 @@ class AlsaDriver : public Driver
public:
explicit AlsaDriver(ILog& log, EventSink emit_event);
- AlsaDriver(const AlsaDriver&) = delete;
+ AlsaDriver(const AlsaDriver&) = delete;
AlsaDriver& operator=(const AlsaDriver&) = delete;
- AlsaDriver(AlsaDriver&&) = delete;
+ AlsaDriver(AlsaDriver&&) = delete;
AlsaDriver& operator=(AlsaDriver&&) = delete;
~AlsaDriver() override;
diff --git a/src/CanvasModule.hpp b/src/CanvasModule.hpp
index 7ce8950..a8bca70 100644
--- a/src/CanvasModule.hpp
+++ b/src/CanvasModule.hpp
@@ -37,10 +37,10 @@ public:
double x,
double y);
- CanvasModule(const CanvasModule&) = delete;
+ CanvasModule(const CanvasModule&) = delete;
CanvasModule& operator=(const CanvasModule&) = delete;
- CanvasModule(CanvasModule&&) = delete;
+ CanvasModule(CanvasModule&&) = delete;
CanvasModule& operator=(CanvasModule&&) = delete;
~CanvasModule() override = default;
diff --git a/src/CanvasPort.hpp b/src/CanvasPort.hpp
index 71c1117..594fdfb 100644
--- a/src/CanvasPort.hpp
+++ b/src/CanvasPort.hpp
@@ -57,10 +57,10 @@ public:
signal_event().connect(sigc::mem_fun(this, &CanvasPort::on_event));
}
- CanvasPort(const CanvasPort&) = delete;
+ CanvasPort(const CanvasPort&) = delete;
CanvasPort& operator=(const CanvasPort&) = delete;
- CanvasPort(CanvasPort&&) = delete;
+ CanvasPort(CanvasPort&&) = delete;
CanvasPort& operator=(CanvasPort&&) = delete;
~CanvasPort() override = default;
diff --git a/src/ClientID.hpp b/src/ClientID.hpp
index 0cfdb29..9d4c361 100644
--- a/src/ClientID.hpp
+++ b/src/ClientID.hpp
@@ -18,10 +18,10 @@ namespace patchage {
struct ClientID {
using Type = ClientType;
- ClientID(const ClientID& copy) = default;
+ ClientID(const ClientID& copy) = default;
ClientID& operator=(const ClientID& copy) = default;
- ClientID(ClientID&& id) = default;
+ ClientID(ClientID&& id) = default;
ClientID& operator=(ClientID&& id) = default;
~ClientID() = default;
diff --git a/src/Driver.hpp b/src/Driver.hpp
index 027e973..4cb890b 100644
--- a/src/Driver.hpp
+++ b/src/Driver.hpp
@@ -23,10 +23,10 @@ public:
: _emit_event{std::move(emit_event)}
{}
- Driver(const Driver&) = delete;
+ Driver(const Driver&) = delete;
Driver& operator=(const Driver&) = delete;
- Driver(Driver&&) = delete;
+ Driver(Driver&&) = delete;
Driver& operator=(Driver&&) = delete;
virtual ~Driver() = default;
diff --git a/src/Drivers.hpp b/src/Drivers.hpp
index c8938b8..eea0fbc 100644
--- a/src/Drivers.hpp
+++ b/src/Drivers.hpp
@@ -20,10 +20,10 @@ class Drivers
public:
Drivers(ILog& log, Driver::EventSink emit_event);
- Drivers(const Drivers&) = delete;
+ Drivers(const Drivers&) = delete;
Drivers& operator=(const Drivers&) = delete;
- Drivers(Drivers&&) = delete;
+ Drivers(Drivers&&) = delete;
Drivers& operator=(Drivers&&) = delete;
~Drivers() = default;
diff --git a/src/ILog.hpp b/src/ILog.hpp
index e5759a2..5e00602 100644
--- a/src/ILog.hpp
+++ b/src/ILog.hpp
@@ -14,10 +14,10 @@ class ILog
public:
ILog() = default;
- ILog(const ILog&) = default;
+ ILog(const ILog&) = default;
ILog& operator=(const ILog&) = default;
- ILog(ILog&&) = default;
+ ILog(ILog&&) = default;
ILog& operator=(ILog&&) = default;
virtual ~ILog() = default;
diff --git a/src/JackLibDriver.cpp b/src/JackLibDriver.cpp
index 927c923..b519d7b 100644
--- a/src/JackLibDriver.cpp
+++ b/src/JackLibDriver.cpp
@@ -49,10 +49,10 @@ class JackLibDriver : public AudioDriver
public:
explicit JackLibDriver(ILog& log, EventSink emit_event);
- JackLibDriver(const JackLibDriver&) = delete;
+ JackLibDriver(const JackLibDriver&) = delete;
JackLibDriver& operator=(const JackLibDriver&) = delete;
- JackLibDriver(JackLibDriver&&) = delete;
+ JackLibDriver(JackLibDriver&&) = delete;
JackLibDriver& operator=(JackLibDriver&&) = delete;
~JackLibDriver() override;
diff --git a/src/Patchage.hpp b/src/Patchage.hpp
index c4a4687..c3295bf 100644
--- a/src/Patchage.hpp
+++ b/src/Patchage.hpp
@@ -66,10 +66,10 @@ public:
explicit Patchage(Options options);
~Patchage();
- Patchage(const Patchage&) = delete;
+ Patchage(const Patchage&) = delete;
Patchage& operator=(const Patchage&) = delete;
- Patchage(Patchage&&) = delete;
+ Patchage(Patchage&&) = delete;
Patchage& operator=(Patchage&&) = delete;
void operator()(const setting::AlsaAttached& setting);
diff --git a/src/PortID.hpp b/src/PortID.hpp
index 846a447..3c2fc58 100644
--- a/src/PortID.hpp
+++ b/src/PortID.hpp
@@ -23,10 +23,10 @@ namespace patchage {
struct PortID {
using Type = ClientType;
- PortID(const PortID& copy) = default;
+ PortID(const PortID& copy) = default;
PortID& operator=(const PortID& copy) = default;
- PortID(PortID&& id) = default;
+ PortID(PortID&& id) = default;
PortID& operator=(PortID&& id) = default;
~PortID() = default;
diff --git a/src/Reactor.hpp b/src/Reactor.hpp
index b053fed..74af8b7 100644
--- a/src/Reactor.hpp
+++ b/src/Reactor.hpp
@@ -32,10 +32,10 @@ public:
Canvas& canvas,
ILog& log);
- Reactor(const Reactor&) = delete;
+ Reactor(const Reactor&) = delete;
Reactor& operator=(const Reactor&) = delete;
- Reactor(Reactor&&) = delete;
+ Reactor(Reactor&&) = delete;
Reactor& operator=(Reactor&&) = delete;
~Reactor() = default;
diff --git a/src/TextViewLog.hpp b/src/TextViewLog.hpp
index 31b786d..40d0782 100644
--- a/src/TextViewLog.hpp
+++ b/src/TextViewLog.hpp
@@ -26,10 +26,10 @@ class TextViewLog : public ILog
public:
explicit TextViewLog(Widget<Gtk::TextView>& text_view);
- TextViewLog(const TextViewLog&) = delete;
+ TextViewLog(const TextViewLog&) = delete;
TextViewLog& operator=(const TextViewLog&) = delete;
- TextViewLog(TextViewLog&&) = delete;
+ TextViewLog(TextViewLog&&) = delete;
TextViewLog& operator=(TextViewLog&&) = delete;
~TextViewLog() override = default;
diff --git a/src/Widget.hpp b/src/Widget.hpp
index d818210..1c3b6ee 100644
--- a/src/Widget.hpp
+++ b/src/Widget.hpp
@@ -20,10 +20,10 @@ public:
xml->get_widget(name, _me);
}
- Widget(const Widget&) = delete;
+ Widget(const Widget&) = delete;
Widget& operator=(const Widget&) = delete;
- Widget(Widget&&) = delete;
+ Widget(Widget&&) = delete;
Widget& operator=(Widget&&) = delete;
~Widget() = default;
diff --git a/src/binary_location.h b/src/binary_location.h
index 0cc3688..12f726e 100644
--- a/src/binary_location.h
+++ b/src/binary_location.h
@@ -13,31 +13,31 @@ namespace patchage {
inline std::string
binary_location()
{
- Dl_info dli = {};
- const int ret = dladdr(reinterpret_cast<void*>(&binary_location), &dli);
- if (!ret) {
- return "";
- }
-
- char* const bin_loc = realpath(dli.dli_fname, nullptr);
- if (!bin_loc) {
- return "";
- }
-
- std::string loc{bin_loc};
- free(bin_loc);
- return loc;
+ Dl_info dli = {};
+ const int ret = dladdr(reinterpret_cast<void*>(&binary_location), &dli);
+ if (!ret) {
+ return "";
+ }
+
+ char* const bin_loc = realpath(dli.dli_fname, nullptr);
+ if (!bin_loc) {
+ return "";
+ }
+
+ std::string loc{bin_loc};
+ free(bin_loc);
+ return loc;
}
/** Return the absolute path of the bundle (binary parent directory). */
inline std::string
bundle_location()
{
- const std::string binary = binary_location();
- if (binary.empty()) {
- return "";
- }
- return binary.substr(0, binary.find_last_of('/'));
+ const std::string binary = binary_location();
+ if (binary.empty()) {
+ return "";
+ }
+ return binary.substr(0, binary.find_last_of('/'));
}
} // namespace patchage