diff options
author | mukesh agrawal <quiche@chromium.org> | 2011-09-16 16:16:36 -0700 |
---|---|---|
committer | mukesh agrawal <quiche@chromium.org> | 2011-09-19 13:35:40 -0700 |
commit | de29fa8d95092f28548b5e4537a6c61e21ae760b (patch) | |
tree | 5227da84f7a2cea8d2c29d0f2aa83c6f3c44fbee /property_store.h | |
parent | aa48237c7b263ae44f94e3631ac9c9c18b0467df (diff) | |
download | shill-de29fa8d95092f28548b5e4537a6c61e21ae760b.tar.gz |
shill: tighten up constness of PropertyStore
BUG=chromium-os:20543
TEST=unittest
Change-Id: Ifa86f82a883b3c3ec61ce10f8d82564b9a036b04
Reviewed-on: http://gerrit.chromium.org/gerrit/7901
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Diffstat (limited to 'property_store.h')
-rw-r--r-- | property_store.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/property_store.h b/property_store.h index c452d79d..9c82450e 100644 --- a/property_store.h +++ b/property_store.h @@ -23,7 +23,7 @@ class PropertyStore { PropertyStore(); virtual ~PropertyStore(); - virtual bool Contains(const std::string& property); + virtual bool Contains(const std::string& property) const; // Methods to allow the setting, by name, of properties stored in this object. // The property names are declared in chromeos/dbus/service_constants.h, @@ -69,17 +69,17 @@ class PropertyStore { Error *error); // Accessors for iterators over property maps. - PropertyConstIterator<bool> GetBoolPropertiesIter(); - PropertyConstIterator<int16> GetInt16PropertiesIter(); - PropertyConstIterator<int32> GetInt32PropertiesIter(); - PropertyConstIterator<std::string> GetStringPropertiesIter(); - PropertyConstIterator<Stringmap> GetStringmapPropertiesIter(); - PropertyConstIterator<Stringmaps> GetStringmapsPropertiesIter(); - PropertyConstIterator<StrIntPair> GetStrIntPairPropertiesIter(); - PropertyConstIterator<Strings> GetStringsPropertiesIter(); - PropertyConstIterator<uint8> GetUint8PropertiesIter(); - PropertyConstIterator<uint16> GetUint16PropertiesIter(); - PropertyConstIterator<uint32> GetUint32PropertiesIter(); + PropertyConstIterator<bool> GetBoolPropertiesIter() const; + PropertyConstIterator<int16> GetInt16PropertiesIter() const; + PropertyConstIterator<int32> GetInt32PropertiesIter() const; + PropertyConstIterator<std::string> GetStringPropertiesIter() const; + PropertyConstIterator<Stringmap> GetStringmapPropertiesIter() const; + PropertyConstIterator<Stringmaps> GetStringmapsPropertiesIter() const; + PropertyConstIterator<StrIntPair> GetStrIntPairPropertiesIter() const; + PropertyConstIterator<Strings> GetStringsPropertiesIter() const; + PropertyConstIterator<uint8> GetUint8PropertiesIter() const; + PropertyConstIterator<uint16> GetUint16PropertiesIter() const; + PropertyConstIterator<uint32> GetUint32PropertiesIter() const; void RegisterBool(const std::string &name, bool *prop); void RegisterConstBool(const std::string &name, const bool *prop); |