summaryrefslogtreecommitdiffstats
path: root/src/server/ClientUpdate.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-17 00:10:50 +0100
committerDavid Robillard <d@drobilla.net>2018-01-17 00:10:50 +0100
commitbd50ebb65df099d84fcf8978c7dc1db7db3b2917 (patch)
treed9d842e08c82dcb92ca4b4494b52953735cbb851 /src/server/ClientUpdate.cpp
parent3441b4268a070418b6d7b7266d93b265ba79f45f (diff)
downloadingen-bd50ebb65df099d84fcf8978c7dc1db7db3b2917.tar.gz
ingen-bd50ebb65df099d84fcf8978c7dc1db7db3b2917.tar.bz2
ingen-bd50ebb65df099d84fcf8978c7dc1db7db3b2917.zip
Clean up Engine component memory management and trim include tree
Diffstat (limited to 'src/server/ClientUpdate.cpp')
-rw-r--r--src/server/ClientUpdate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/ClientUpdate.cpp b/src/server/ClientUpdate.cpp
index e4d9c08f..a5f85cef 100644
--- a/src/server/ClientUpdate.cpp
+++ b/src/server/ClientUpdate.cpp
@@ -132,22 +132,22 @@ put_higher_than(const ClientUpdate::Put& a, const ClientUpdate::Put& b)
}
void
-ClientUpdate::send(Interface* dest)
+ClientUpdate::send(Interface& dest)
{
// Send deletions
for (const Raul::URI& subject : dels) {
- dest->del(subject);
+ dest.del(subject);
}
// Send puts in increasing depth order so parents are sent first
std::stable_sort(puts.begin(), puts.end(), put_higher_than);
for (const ClientUpdate::Put& put : puts) {
- dest->put(put.uri, put.properties, put.ctx);
+ dest.put(put.uri, put.properties, put.ctx);
}
// Send connections
for (const ClientUpdate::Connect& connect : connects) {
- dest->connect(connect.tail, connect.head);
+ dest.connect(connect.tail, connect.head);
}
}