diff options
author | Daniel Boles <dboles@src.gnome.org> | 2019-06-11 23:24:30 +0100 |
---|---|---|
committer | Daniel Boles <dboles@src.gnome.org> | 2019-06-11 23:42:45 +0100 |
commit | bfe785f44dffd7fcd4457f96b7b927092d08ee55 (patch) | |
tree | 2ce240b0c6cca5cb7b72d0f8c939f4f55dd0b283 /glib/glibmm/property.h | |
parent | 49707a268ce93c6bdb0ca731f9b007ab5fe63cdd (diff) | |
download | glibmm-bfe785f44dffd7fcd4457f96b7b927092d08ee55.tar.gz |
Property: Getting Proxy from ReadOnly is const too
Thereʼs no need for this to require a non-const Property_ReadOnly as the
Proxy by definition canʼt modify it, so make it const like other methods
Diffstat (limited to 'glib/glibmm/property.h')
-rw-r--r-- | glib/glibmm/property.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/glibmm/property.h b/glib/glibmm/property.h index 305914c7..86105d83 100644 --- a/glib/glibmm/property.h +++ b/glib/glibmm/property.h @@ -273,7 +273,7 @@ public: /** Returns a proxy object that can be used to read this property. */ - inline Glib::PropertyProxy_ReadOnly<T> get_proxy(); + inline Glib::PropertyProxy_ReadOnly<T> get_proxy() const; }; /** See Property. @@ -462,7 +462,7 @@ inline Property_ReadOnly<T>::operator T() const template <class T> inline Glib::PropertyProxy_ReadOnly<T> -Property_ReadOnly<T>::get_proxy() +Property_ReadOnly<T>::get_proxy() const { return Glib::PropertyProxy_ReadOnly<T>(object_, get_name_internal()); } |