implementation side of Controllable::get_user_string() with const arg
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 16 May 2016 20:41:50 +0000 (16:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:42 +0000 (15:30 -0400)
libs/ardour/amp.cc
libs/ardour/automatable.cc
libs/ardour/panner.cc
libs/ardour/send.cc

index 42b8d084cf3bcb0e8ba59ab453ebdb6ddb14721d..a1ffad8e051beeeb9c37293c64cc114760fae3b5 100644 (file)
@@ -405,7 +405,7 @@ Amp::visible() const
 }
 
 std::string
-Amp::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Amp::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        if (ac == _gain_control) {
                char buffer[32];
index 1ff80057ae7d8dba9c7d3a40a9933c145cb36ca2..e108676fa7b5f6096b0a7667952b20d0031f5c50 100644 (file)
@@ -519,7 +519,7 @@ Automatable::clear_controls ()
 }
 
 string
-Automatable::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Automatable::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        return ARDOUR::value_as_string(ac->desc(), ac->get_value());
 }
index c88fbe44f430e1a9f679dfcc84365d611e4e1417..d132850af000d1dadac2240bab6928e64fcf4875 100644 (file)
@@ -109,7 +109,7 @@ Panner::describe_parameter (Evoral::Parameter p)
 }
 
 string
-Panner::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Panner::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        return _pannable->value_as_string (ac);
 }
index f1cfdc7ef380febe744aa1c8591665eb426a0dcb..8f7afc7c8fc4d5ab7e5cf5865e721fee86703fd1 100644 (file)
@@ -409,7 +409,7 @@ Send::display_to_user () const
 }
 
 string
-Send::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Send::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        return _amp->value_as_string (ac);
 }