fixed clang-tidy errors
fixed clang compilation error and few clang-tidy issues
Tested:
- Code compiles, all unit tests are passing
- Number of reported clang-tidy issues decreased
Change-Id: Ie3f88db6e2dffb26ec6c56dbdc1ce5bad288dccd
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
diff --git a/src/report.cpp b/src/report.cpp
index 170f50d..ed869b9 100644
--- a/src/report.cpp
+++ b/src/report.cpp
@@ -307,9 +307,9 @@
readingsBuffer.isFull())
{
enabled = false;
- for (auto& metric : metrics)
+ for (auto& m : metrics)
{
- metric->deinitialize();
+ m->deinitialize();
}
break;
}