summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-18 16:02:33 +0000
committerDavid Robillard <d@drobilla.net>2011-02-18 16:02:33 +0000
commit7ef2c6553339a3c38f8784d764a8f2610bde5d89 (patch)
tree17826d073b753ebe0da522082f29c49d4851ee02
parente2e782dcba57e89a7501810d3a4c948035165f62 (diff)
downloadingen-7ef2c6553339a3c38f8784d764a8f2610bde5d89.tar.gz
ingen-7ef2c6553339a3c38f8784d764a8f2610bde5d89.tar.bz2
ingen-7ef2c6553339a3c38f8784d764a8f2610bde5d89.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2990 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/client/ClientStore.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index c5b09b8d..2ac8a5ee 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -47,14 +47,18 @@ ClientStore::ClientStore(SharedPtr<Shared::LV2URIMap> uris,
if (!emitter)
return;
- emitter->signal_object_deleted.connect(sigc::mem_fun(this, &ClientStore::del));
- emitter->signal_object_moved.connect(sigc::mem_fun(this, &ClientStore::move));
- emitter->signal_put.connect(sigc::mem_fun(this, &ClientStore::put));
- emitter->signal_delta.connect(sigc::mem_fun(this, &ClientStore::delta));
- emitter->signal_connection.connect(sigc::mem_fun(this, &ClientStore::connect));
- emitter->signal_disconnection.connect(sigc::mem_fun(this, &ClientStore::disconnect));
- emitter->signal_property_change.connect(sigc::mem_fun(this, &ClientStore::set_property));
- emitter->signal_activity.connect(sigc::mem_fun(this, &ClientStore::activity));
+#define CONNECT(signal, method) \
+ emitter->signal_ ## signal .connect( \
+ sigc::mem_fun(this, &ClientStore:: method));
+
+ CONNECT(object_deleted, del);
+ CONNECT(object_moved, move);
+ CONNECT(put, put);
+ CONNECT(delta, delta);
+ CONNECT(connection, connect);
+ CONNECT(disconnection, disconnect);
+ CONNECT(property_change, set_property);
+ CONNECT(activity, activity);
}