Implement clang-tidy fixes
clang-tidy allows the CI robot to check many things via static analysis.
All changes here were made by the clang-tidy robot, and include a number
of modernization fixes. updating the tidy file will be done at a later
date.
Signed-off-by: Ed Tanous <etanous@nvidia.com>
Change-Id: I98cc4d600a3c589675507958f6d2350b2141216b
diff --git a/test/zone_mock.hpp b/test/zone_mock.hpp
index 7d08f63..dcf6b2a 100644
--- a/test/zone_mock.hpp
+++ b/test/zone_mock.hpp
@@ -13,7 +13,7 @@
class ZoneMock : public ZoneInterface
{
public:
- virtual ~ZoneMock() = default;
+ ~ZoneMock() override = default;
MOCK_METHOD0(updateFanTelemetry, void());
MOCK_METHOD0(updateSensors, void());
@@ -21,7 +21,7 @@
MOCK_METHOD1(getCachedValue, double(const std::string&));
// Compatibility interface for getCachedValues
- ValueCacheEntry getCachedValues(const std::string& s)
+ ValueCacheEntry getCachedValues(const std::string& s) override
{
auto v = getCachedValue(s);
return {v, v};