From 155f4c422735cdb7400d9290dc6defca8f580a1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Jul 2012 16:54:03 +0000 Subject: Shrink events. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4574 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/SetPortValue.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/server/events/SetPortValue.cpp') 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); } -- cgit v1.2.1