X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_object.cc;h=683d174b1607fe75bdb220d5af48ed54b1e99b9a;hb=dc4f730ac95837590e8305f69778d1049e4a545e;hp=3e71b6a73efe28473745a8d1baca9ffc428863f1;hpb=db8b575c30845bafc34b87bacd52129c95d1c478;p=ardour.git diff --git a/libs/ardour/session_object.cc b/libs/ardour/session_object.cc index 3e71b6a73e..683d174b16 100644 --- a/libs/ardour/session_object.cc +++ b/libs/ardour/session_object.cc @@ -18,8 +18,11 @@ */ #include -#include "ardour/session_object.h" + #include "ardour/debug.h" +#include "ardour/session_object.h" + +#include "pbd/i18n.h" using namespace ARDOUR; using namespace PBD; @@ -31,26 +34,10 @@ namespace ARDOUR { } } -void -SessionObject::make_property_quarks () +void +SessionObject::make_property_quarks () { Properties::name.property_id = g_quark_from_static_string (X_("name")); DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for name = %1\n", Properties::name.property_id)); } -bool -SessionObject::set_property (const PropertyBase& prop) -{ - if (prop == Properties::name.property_id) { - std::string str = dynamic_cast*>(&prop)->val(); - if (_name != str) { - DEBUG_TRACE (DEBUG::Properties, string_compose ("session object named %1 renamed %2\n", - _name.val(), str)); - _name = str; - return true; - } - } - - return false; -} -