diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-25 17:32:21 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-25 17:32:21 +0000 |
commit | b9126419aebf105c0ce99e6b083ca898ca7d47fd (patch) | |
tree | 230ba7c575e11f85f8b09acb2f3f734a92708181 /libs/pbd/pbd/properties.h | |
parent | f30402d073aeae5d24462416407e73d1e0314e71 (diff) |
Small cleanups.
git-svn-id: svn://localhost/ardour2/branches/3.0@7686 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/properties.h')
-rw-r--r-- | libs/pbd/pbd/properties.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/libs/pbd/pbd/properties.h b/libs/pbd/pbd/properties.h index aeb0c3e069..bd4846dc7e 100644 --- a/libs/pbd/pbd/properties.h +++ b/libs/pbd/pbd/properties.h @@ -122,7 +122,6 @@ public: void apply_changes (PropertyBase const * p) { T v = dynamic_cast<const PropertyTemplate<T>* > (p)->val (); - std::cout << "Apply changes: " << v << " cf " << _current << "\n"; if (v != _current) { set (v); } @@ -132,9 +131,14 @@ public: T const tmp = _current; _current = _old; _old = tmp; - std::cout << "Inverted to " << _old << " -> " << _current << "\n"; } + void get_changes_as_properties (PropertyList& changes, Command *) const { + if (this->_have_old) { + changes.add (clone ()); + } + } + protected: /** Constructs a PropertyTemplate with a default value for _old and _current. @@ -198,12 +202,6 @@ public: return new Property<T> (*this); } - void get_changes_as_properties (PropertyList& changes, Command *) const { - if (this->_have_old) { - changes.add (new Property<T> (*this)); - } - } - Property<T>* clone_from_xml (const XMLNode& node) const { XMLNodeList const & children = node.children (); XMLNodeList::const_iterator i = children.begin(); @@ -275,12 +273,6 @@ public: return new Property<std::string> (*this); } - void get_changes_as_properties (PropertyList& changes, Command* /*ignored*/) const { - if (this->_have_old) { - changes.add (new Property<std::string> (*this)); - } - } - std::string & operator=(std::string const& v) { this->set (v); return this->_current; |