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_factory.cpp b/src/report_factory.cpp
index 278b9f1..952b4f2 100644
--- a/src/report_factory.cpp
+++ b/src/report_factory.cpp
@@ -77,7 +77,7 @@
{
auto it = std::find_if(
tree.begin(), tree.end(),
- [&sensorPath](const auto& v) { return v.first == sensorPath; });
+ [path = sensorPath](const auto& v) { return v.first == path; });
if (it != tree.end() && it->second.size() == 1)
{