const where const is due
authorRobin Gareus <robin@gareus.org>
Wed, 31 Jan 2018 02:34:21 +0000 (03:34 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 31 Jan 2018 11:45:58 +0000 (12:45 +0100)
libs/widgets/widgets/ardour_button.h

index b530e8b399ba29ec342b28c06113e8838cdd420c..dde9e84b0a4509b9c8a7df6009c6bc16d4729745 100644 (file)
@@ -87,7 +87,7 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
        void set_corner_radius (float);
 
        void set_text (const std::string&, bool markup = false);
-       const std::string& get_text () { return _text; }
+       const std::string& get_text () const { return _text; }
        bool get_markup () const { return _markup; }
        void set_angle (const double);
        void set_alignment (const float, const float);