From 68e943265edf04e63a8e8b8f62bab20f99d9c637 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 Sep 2008 15:03:30 +0000 Subject: merge from 2.0-ongoing @ 3581 git-svn-id: svn://localhost/ardour2/branches/3.0@3711 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/functor_command.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libs/pbd/pbd/functor_command.h') diff --git a/libs/pbd/pbd/functor_command.h b/libs/pbd/pbd/functor_command.h index e335f4418e..e6c07cfdbe 100644 --- a/libs/pbd/pbd/functor_command.h +++ b/libs/pbd/pbd/functor_command.h @@ -44,15 +44,11 @@ class FunctorCommand : public Command typedef typename FunctorMap::iterator FunctorMapIterator; public: - FunctorCommand( - std::string functor, - obj_type object, - arg_type b, - arg_type a - ) : functor_name(functor), - object(object), - before(b), - after(a) + FunctorCommand(std::string functor, obj_type& object, arg_type b, arg_type a) + : functor_name(functor) + , object(object) + , before(b) + , after(a) { method = find_functor(functor); @@ -76,6 +72,7 @@ class FunctorCommand : public Command std::stringstream ss; XMLNode *node = new XMLNode("FunctorCommand"); + node->add_property("type_name", typeid(obj_type).name()); node->add_property("functor", functor_name); ss << before; node->add_property("before", ss.str()); -- cgit v1.2.3