From d0f5097c61fb3659fedda43e5ebc75b416d9bbd7 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 19 Dec 2018 14:43:12 -0800 Subject: SensorSet: add underscore prefix to members Add underscore prefix to members for SensorSet object. Change-Id: Ibd6d5f2d18f3a730d847d09ffead3b752ef7dd4c Signed-off-by: Patrick Venture --- sensorset.cpp | 2 +- sensorset.hpp | 6 +++--- 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(container).begin(); + return const_cast(_container).begin(); } /** @@ -58,7 +58,7 @@ class SensorSet */ container_t::const_iterator end() { - return const_cast(container).end(); + return const_cast(_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 -- cgit v1.2.1