diff options
author | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 07:46:34 +0000 |
---|---|---|
committer | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 07:46:34 +0000 |
commit | 4a7b35d6326f9bd174fabc64398fee8a3319d571 (patch) | |
tree | 06f74225f43dab9b85d2939f2d9008971b02bafb /dbus | |
parent | 703d4f6213a41d341ede01087ea5f1ad640b3e6a (diff) | |
download | chromium_src-4a7b35d6326f9bd174fabc64398fee8a3319d571.zip chromium_src-4a7b35d6326f9bd174fabc64398fee8a3319d571.tar.gz chromium_src-4a7b35d6326f9bd174fabc64398fee8a3319d571.tar.bz2 |
dbus: Property<>.value() should be const
Constant references to PropertySets are a useful way to avoid someone
calling Get() and Set(), but we should allow them to call value().
BUG=none
TEST=built and tested
Change-Id: Ic8e5449e87ba3cebbe6a3534596bb53016236333
Review URL: http://codereview.chromium.org/9414029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/property.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/property.h b/dbus/property.h index e90d2a2..c3fb7fd 100644 --- a/dbus/property.h +++ b/dbus/property.h @@ -318,7 +318,7 @@ class Property : public PropertyBase { Property() : weak_ptr_factory_(this) {} // Retrieves the cached value. - const T& value() { return value_; } + const T& value() const { return value_; } // Requests an updated value from the remote object incurring a // round-trip. |callback| will be called when the new value is available. |