summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-12-19 14:43:12 -0800
committerPatrick Venture <venture@google.com>2019-01-02 11:56:28 -0800
commitd0f5097c61fb3659fedda43e5ebc75b416d9bbd7 (patch)
tree33a71f610d2b36440b0600f98d8618f2733a8497
parentabf29700c8024fcf1b90cf42d678b51243173e40 (diff)
downloadphosphor-hwmon-d0f5097c61fb3659fedda43e5ebc75b416d9bbd7.tar.gz
phosphor-hwmon-d0f5097c61fb3659fedda43e5ebc75b416d9bbd7.zip
SensorSet: add underscore prefix to members
Add underscore prefix to members for SensorSet object. Change-Id: Ibd6d5f2d18f3a730d847d09ffead3b752ef7dd4c Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--sensorset.cpp2
-rw-r--r--sensorset.hpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/sensorset.cpp b/sensorset.cpp
index 268ef3d..f326e88 100644
--- a/sensorset.cpp
+++ b/sensorset.cpp
@@ -47,7 +47,7 @@ SensorSet::SensorSet(const std::string& path)
continue;
}
- container[make_pair(match[1], match[2])].emplace(match[3]);
+ _container[make_pair(match[1], match[2])].emplace(match[3]);
}
}
diff --git a/sensorset.hpp b/sensorset.hpp
index 8ad0d5a..7f6f3f9 100644
--- a/sensorset.hpp
+++ b/sensorset.hpp
@@ -48,7 +48,7 @@ class SensorSet
*/
container_t::const_iterator begin()
{
- return const_cast<const container_t&>(container).begin();
+ return const_cast<const container_t&>(_container).begin();
}
/**
@@ -58,7 +58,7 @@ class SensorSet
*/
container_t::const_iterator end()
{
- return const_cast<const container_t&>(container).end();
+ return const_cast<const container_t&>(_container).end();
}
private:
@@ -68,7 +68,7 @@ class SensorSet
* key = pair("temp", "1")
* value = "input"
*/
- container_t container;
+ container_t _container;
};
// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud