summaryrefslogtreecommitdiffstats
path: root/sensors
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-13 09:30:58 -0700
committerPatrick Venture <venture@google.com>2018-10-13 09:35:40 -0700
commitdf766f251f25e32ccbfe1e3ea429f118478422bd (patch)
tree9c8939a4bb99a87e20903e9d175cc9393b088f02 /sensors
parent45153926a6aa838f4ad83db681f97f8af17fc5f5 (diff)
downloadphosphor-pid-control-df766f251f25e32ccbfe1e3ea429f118478422bd.tar.gz
phosphor-pid-control-df766f251f25e32ccbfe1e3ea429f118478422bd.zip
cleanup: reduce scope of variables
Various things caught by cppcheck that are non-critical. Change-Id: I495453c84bc15788b85036a163ee36b0ac601fa1 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'sensors')
-rw-r--r--sensors/sensor.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sensors/sensor.hpp b/sensors/sensor.hpp
index 9ff0584..2c287cf 100644
--- a/sensors/sensor.hpp
+++ b/sensors/sensor.hpp
@@ -11,7 +11,8 @@
class Sensor
{
public:
- Sensor(std::string name, int64_t timeout) : _name(name), _timeout(timeout)
+ Sensor(const std::string& name, int64_t timeout) :
+ _name(name), _timeout(timeout)
{
}
OpenPOWER on IntegriCloud