summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:27:51 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:27:51 -0400
commit590f82cba0752f41226bbdbf352753cf336ec758 (patch)
tree5de55e3999108093331e37327c762996e2795b88 /src
parent126c045016602323b974484252d60f6077f156bf (diff)
downloadingen-590f82cba0752f41226bbdbf352753cf336ec758.tar.gz
ingen-590f82cba0752f41226bbdbf352753cf336ec758.tar.bz2
ingen-590f82cba0752f41226bbdbf352753cf336ec758.zip
Use a consistent style for empty braces
Diffstat (limited to 'src')
-rw-r--r--src/AtomWriter.cpp6
-rw-r--r--src/Serialiser.cpp3
-rw-r--r--src/URI.cpp3
-rw-r--r--src/URIMap.cpp3
-rw-r--r--src/client/BlockModel.cpp6
-rw-r--r--src/client/ObjectModel.cpp6
-rw-r--r--src/client/PluginUI.cpp3
-rw-r--r--src/gui/ConnectWindow.cpp3
-rw-r--r--src/gui/Window.hpp6
-rw-r--r--src/server/BufferFactory.cpp3
-rw-r--r--src/server/EventWriter.cpp3
-rw-r--r--src/server/FrameTimer.hpp3
-rw-r--r--src/server/JackDriver.hpp3
-rw-r--r--src/server/NodeImpl.cpp3
-rw-r--r--src/server/PluginImpl.hpp3
-rw-r--r--src/server/PortAudioDriver.cpp18
-rw-r--r--src/server/PortImpl.cpp3
-rw-r--r--src/server/PostProcessor.cpp3
-rw-r--r--src/server/UndoStack.cpp3
-rw-r--r--src/server/events/Connect.cpp3
-rw-r--r--src/server/events/CreateGraph.cpp3
-rw-r--r--src/server/events/Disconnect.cpp3
-rw-r--r--src/server/events/DisconnectAll.cpp6
-rw-r--r--src/server/events/Get.cpp3
-rw-r--r--src/server/events/Move.cpp6
-rw-r--r--src/server/events/SetPortValue.cpp3
-rw-r--r--src/server/events/Undo.cpp3
27 files changed, 39 insertions, 75 deletions
diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp
index 6b60a3a5..e8418de1 100644
--- a/src/AtomWriter.cpp
+++ b/src/AtomWriter.cpp
@@ -79,8 +79,7 @@ AtomWriter::AtomWriter(URIMap& map, URIs& uris, AtomSink& sink)
, _uris(uris)
, _sink(sink)
, _forge(map.urid_map())
-{
-}
+{}
void
AtomWriter::finish_msg()
@@ -630,8 +629,7 @@ AtomWriter::operator()(const Response& response)
void
AtomWriter::operator()(const Error&)
-{
-}
+{}
/** @page protocol
* @section loading Loading and Unloading Bundles
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index dde31018..b0d41dd2 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -59,8 +59,7 @@ struct Serialiser::Impl
: _root_path("/")
, _world(world)
, _sratom(sratom_new(&_world.uri_map().urid_map()))
- {
- }
+ {}
~Impl() { sratom_free(_sratom); }
diff --git a/src/URI.cpp b/src/URI.cpp
index 5575f804..fb562410 100644
--- a/src/URI.cpp
+++ b/src/URI.cpp
@@ -68,8 +68,7 @@ URI::URI(SerdNode node, SerdURI uri)
URI::URI(const Sord::Node& node)
: URI(*node.to_serd_node())
-{
-}
+{}
URI::URI(const FilePath& path)
: _uri(SERD_URI_NULL)
diff --git a/src/URIMap.cpp b/src/URIMap.cpp
index 1f627e1e..0d6654a5 100644
--- a/src/URIMap.cpp
+++ b/src/URIMap.cpp
@@ -29,8 +29,7 @@ namespace ingen {
URIMap::URIMap(Log& log, LV2_URID_Map* map, LV2_URID_Unmap* unmap)
: _urid_map_feature(new URIDMapFeature(this, map, log))
, _urid_unmap_feature(new URIDUnmapFeature(this, unmap))
-{
-}
+{}
URIMap::URIDMapFeature::URIDMapFeature(URIMap* map,
LV2_URID_Map* impl,
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp
index 256c41f0..aa4ef663 100644
--- a/src/client/BlockModel.cpp
+++ b/src/client/BlockModel.cpp
@@ -46,8 +46,7 @@ BlockModel::BlockModel(URIs& uris,
, _num_values(0)
, _min_values(nullptr)
, _max_values(nullptr)
-{
-}
+{}
BlockModel::BlockModel(URIs& uris, URI plugin_uri, const raul::Path& path)
: ObjectModel(uris, path)
@@ -55,8 +54,7 @@ BlockModel::BlockModel(URIs& uris, URI plugin_uri, const raul::Path& path)
, _num_values(0)
, _min_values(nullptr)
, _max_values(nullptr)
-{
-}
+{}
BlockModel::BlockModel(const BlockModel& copy)
: ObjectModel(copy)
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp
index c172c445..9db429c5 100644
--- a/src/client/ObjectModel.cpp
+++ b/src/client/ObjectModel.cpp
@@ -36,16 +36,14 @@ ObjectModel::ObjectModel(URIs& uris, const raul::Path& path)
: Node(uris, path)
, _path(path)
, _symbol((path == "/") ? "root" : path.symbol())
-{
-}
+{}
ObjectModel::ObjectModel(const ObjectModel& copy)
: Node(copy)
, _parent(copy._parent)
, _path(copy._path)
, _symbol(copy._symbol)
-{
-}
+{}
bool
ObjectModel::is_a(const URIs::Quark& type) const
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index c0778135..f4c4fc65 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -170,8 +170,7 @@ PluginUI::PluginUI(ingen::World& world,
, _ui(ui)
, _ui_node(lilv_node_duplicate(lilv_ui_get_uri(ui)))
, _ui_type(lilv_node_duplicate(ui_type))
-{
-}
+{}
PluginUI::~PluginUI()
{
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index 20e7d33e..a4c8a433 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -70,8 +70,7 @@ ConnectWindow::ConnectWindow(BaseObjectType* cobject,
Glib::RefPtr<Gtk::Builder> xml)
: Dialog(cobject)
, _xml(std::move(xml))
-{
-}
+{}
void
ConnectWindow::message(const Message& msg)
diff --git a/src/gui/Window.hpp b/src/gui/Window.hpp
index acf75942..fa2016a8 100644
--- a/src/gui/Window.hpp
+++ b/src/gui/Window.hpp
@@ -38,8 +38,7 @@ public:
explicit Window(BaseObjectType* cobject)
: Gtk::Window(cobject)
- {
- }
+ {}
virtual void init_window(App& app) { _app = &app; }
@@ -66,8 +65,7 @@ public:
explicit Dialog(BaseObjectType* cobject)
: Gtk::Dialog(cobject)
- {
- }
+ {}
virtual void init_dialog(App& app) { _app = &app; }
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index 7c1e0b17..348dbca6 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -39,8 +39,7 @@ BufferFactory::BufferFactory(Engine& engine, URIs& uris)
, _engine(engine)
, _uris(uris)
, _silent_buffer(nullptr)
-{
-}
+{}
BufferFactory::~BufferFactory()
{
diff --git a/src/server/EventWriter.cpp b/src/server/EventWriter.cpp
index 8aeb5d83..e9fb56a6 100644
--- a/src/server/EventWriter.cpp
+++ b/src/server/EventWriter.cpp
@@ -36,8 +36,7 @@ namespace server {
EventWriter::EventWriter(Engine& engine)
: _engine(engine)
-{
-}
+{}
SampleCount
EventWriter::now() const
diff --git a/src/server/FrameTimer.hpp b/src/server/FrameTimer.hpp
index 8a155777..dfa5c46b 100644
--- a/src/server/FrameTimer.hpp
+++ b/src/server/FrameTimer.hpp
@@ -43,8 +43,7 @@ public:
, b(sqrt(2) * omega)
, c(omega * omega)
, nper(period_size)
- {
- }
+ {}
/** Update the timer for current real time `usec` and frame `frame`. */
void update(uint64_t usec, uint64_t frame) {
diff --git a/src/server/JackDriver.hpp b/src/server/JackDriver.hpp
index 49158e10..a00f55cc 100644
--- a/src/server/JackDriver.hpp
+++ b/src/server/JackDriver.hpp
@@ -114,7 +114,8 @@ public:
return _client ? jack_frame_time(_client) : 0;
}
- class PortRegistrationFailedException : public std::exception {};
+ class PortRegistrationFailedException : public std::exception
+ {};
private:
friend class JackPort;
diff --git a/src/server/NodeImpl.cpp b/src/server/NodeImpl.cpp
index d914ae1c..499300a2 100644
--- a/src/server/NodeImpl.cpp
+++ b/src/server/NodeImpl.cpp
@@ -37,8 +37,7 @@ NodeImpl::NodeImpl(const ingen::URIs& uris,
, _parent(parent)
, _path(parent ? parent->path().child(symbol) : raul::Path("/"))
, _symbol(symbol)
-{
-}
+{}
const Atom&
NodeImpl::get_property(const URI& key) const
diff --git a/src/server/PluginImpl.hpp b/src/server/PluginImpl.hpp
index 6164d77f..3184be11 100644
--- a/src/server/PluginImpl.hpp
+++ b/src/server/PluginImpl.hpp
@@ -48,8 +48,7 @@ public:
PluginImpl(ingen::URIs& uris, const Atom& type, const URI& uri)
: Resource(uris, uri)
, _type(type)
- {
- }
+ {}
PluginImpl(const PluginImpl&) = delete;
PluginImpl& operator=(const PluginImpl&) = delete;
diff --git a/src/server/PortAudioDriver.cpp b/src/server/PortAudioDriver.cpp
index 6ac795e6..c04e83d9 100644
--- a/src/server/PortAudioDriver.cpp
+++ b/src/server/PortAudioDriver.cpp
@@ -49,8 +49,7 @@ PortAudioDriver::PortAudioDriver(Engine& engine)
, _inputParameters()
, _outputParameters()
, _block_length(engine.world().conf().option("buffer-size").get<int32_t>())
-{
-}
+{}
PortAudioDriver::~PortAudioDriver()
{
@@ -179,26 +178,22 @@ PortAudioDriver::remove_port(RunContext&, EnginePort* port)
void
PortAudioDriver::register_port(EnginePort& port)
-{
-}
+{}
void
PortAudioDriver::unregister_port(EnginePort& port)
-{
-}
+{}
void
PortAudioDriver::rename_port(const raul::Path& old_path,
const raul::Path& new_path)
-{
-}
+{}
void
PortAudioDriver::port_property(const raul::Path& path,
const URI& uri,
const Atom& value)
-{
-}
+{}
EnginePort*
PortAudioDriver::create_port(DuplexPort* graph_port)
@@ -260,8 +255,7 @@ PortAudioDriver::post_process_port(RunContext&,
EnginePort* port,
const void* inputs,
void* outputs)
-{
-}
+{}
int
PortAudioDriver::process_cb(const void* inputs,
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 23eb16ee..1e7e23cf 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -564,8 +564,7 @@ PortImpl::pre_process(RunContext& ctx)
void
PortImpl::pre_run(RunContext&)
-{
-}
+{}
void
PortImpl::post_process(RunContext& ctx)
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index a4f94fe9..d02935a9 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -40,8 +40,7 @@ PostProcessor::PostProcessor(Engine& engine)
, _head(new Sentinel(engine))
, _tail(_head.load())
, _max_time(0)
-{
-}
+{}
PostProcessor::~PostProcessor()
{
diff --git a/src/server/UndoStack.cpp b/src/server/UndoStack.cpp
index 858cb11b..a6f79657 100644
--- a/src/server/UndoStack.cpp
+++ b/src/server/UndoStack.cpp
@@ -139,8 +139,7 @@ struct ListContext {
, s(*subject)
, p(*predicate)
, flags(statement_flags | SERD_LIST_O_BEGIN)
- {
- }
+ {}
SerdNode start_node(SerdWriter* writer) {
const SerdNode node = ids.get();
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp
index 1fa02ae8..386ed74d 100644
--- a/src/server/events/Connect.cpp
+++ b/src/server/events/Connect.cpp
@@ -52,8 +52,7 @@ Connect::Connect(Engine& engine,
const ingen::Connect& msg)
: Event(engine, client, msg.seq, timestamp)
, _msg(msg)
-{
-}
+{}
Connect::~Connect() = default;
diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp
index dc7c0d7d..c1a30d4d 100644
--- a/src/server/events/CreateGraph.cpp
+++ b/src/server/events/CreateGraph.cpp
@@ -58,8 +58,7 @@ CreateGraph::CreateGraph(Engine& engine,
: Event(engine, client, id, timestamp)
, _path(std::move(path))
, _properties(properties)
-{
-}
+{}
CreateGraph::~CreateGraph() = default;
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index c20ed9a8..3526ac83 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -60,8 +60,7 @@ Disconnect::Disconnect(Engine& engine,
const ingen::Disconnect& msg)
: Event(engine, client, msg.seq, timestamp)
, _msg(msg)
-{
-}
+{}
Disconnect::~Disconnect() = default;
diff --git a/src/server/events/DisconnectAll.cpp b/src/server/events/DisconnectAll.cpp
index 729b102c..7ae17632 100644
--- a/src/server/events/DisconnectAll.cpp
+++ b/src/server/events/DisconnectAll.cpp
@@ -53,8 +53,7 @@ DisconnectAll::DisconnectAll(Engine& engine,
, _block(nullptr)
, _port(nullptr)
, _deleting(false)
-{
-}
+{}
/** Internal version for use by other events.
*/
@@ -67,8 +66,7 @@ DisconnectAll::DisconnectAll(Engine& engine,
, _block(dynamic_cast<BlockImpl*>(object))
, _port(dynamic_cast<PortImpl*>(object))
, _deleting(true)
-{
-}
+{}
DisconnectAll::~DisconnectAll()
{
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp
index bd59e19d..389d9e48 100644
--- a/src/server/events/Get.cpp
+++ b/src/server/events/Get.cpp
@@ -93,8 +93,7 @@ Get::pre_process(PreProcessContext&)
void
Get::execute(RunContext&)
-{
-}
+{}
void
Get::post_process()
diff --git a/src/server/events/Move.cpp b/src/server/events/Move.cpp
index 5c47cb5a..8b7ee655 100644
--- a/src/server/events/Move.cpp
+++ b/src/server/events/Move.cpp
@@ -42,8 +42,7 @@ Move::Move(Engine& engine,
const ingen::Move& msg)
: Event(engine, client, msg.seq, timestamp)
, _msg(msg)
-{
-}
+{}
bool
Move::pre_process(PreProcessContext&)
@@ -75,8 +74,7 @@ Move::pre_process(PreProcessContext&)
void
Move::execute(RunContext&)
-{
-}
+{}
void
Move::post_process()
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index a1b5bafa..8b425571 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -51,8 +51,7 @@ SetPortValue::SetPortValue(Engine& engine,
, _value(value)
, _activity(activity)
, _synthetic(synthetic)
-{
-}
+{}
bool
SetPortValue::pre_process(PreProcessContext&)
diff --git a/src/server/events/Undo.cpp b/src/server/events/Undo.cpp
index 3c91235d..9d6fcfaa 100644
--- a/src/server/events/Undo.cpp
+++ b/src/server/events/Undo.cpp
@@ -81,8 +81,7 @@ Undo::pre_process(PreProcessContext&)
void
Undo::execute(RunContext&)
-{
-}
+{}
void
Undo::post_process()