summaryrefslogtreecommitdiffstats
path: root/src/server/events/SetPortValue.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-30 16:54:03 +0000
committerDavid Robillard <d@drobilla.net>2012-07-30 16:54:03 +0000
commit155f4c422735cdb7400d9290dc6defca8f580a1b (patch)
treea3a79ec2db90d91ed7f238f8ce138f1e83dc23f8 /src/server/events/SetPortValue.cpp
parenta2aaeab5f5a42c7980ea0e015a143bb01fdb4015 (diff)
downloadingen-155f4c422735cdb7400d9290dc6defca8f580a1b.tar.gz
ingen-155f4c422735cdb7400d9290dc6defca8f580a1b.tar.bz2
ingen-155f4c422735cdb7400d9290dc6defca8f580a1b.zip
Shrink events.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4574 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/SetPortValue.cpp')
-rw-r--r--src/server/events/SetPortValue.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index 005974a2..e0a56489 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -43,9 +43,8 @@ SetPortValue::SetPortValue(Engine& engine,
PortImpl* port,
const Raul::Atom& value)
: Event(engine, client, id, timestamp)
- , _port_path(port->path())
- , _value(value)
, _port(port)
+ , _value(value)
{
}
@@ -57,7 +56,7 @@ bool
SetPortValue::pre_process()
{
if (_port->is_output()) {
- return Event::pre_process_done(DIRECTION_MISMATCH, _port_path);
+ return Event::pre_process_done(DIRECTION_MISMATCH, _port->path());
}
// Port is on a message context node, set value and run
@@ -119,7 +118,7 @@ SetPortValue::apply(Context& context)
(const uint8_t*)_value.get_body())) {
_port->raise_set_by_user_flag();
} else {
- Raul::warn(Raul::fmt("Error writing to port %1%\n") % _port_path);
+ Raul::warn(Raul::fmt("Error writing to port %1%\n") % _port->path());
}
} else {
Raul::warn(Raul::fmt("Unknown value type %1%\n") % _value.type());
@@ -131,7 +130,7 @@ SetPortValue::post_process()
{
if (!respond()) {
_engine.broadcaster()->set_property(
- _port_path,
+ _port->path(),
_engine.world()->uris().ingen_value,
_value);
}