From f5ff3f23cf234805c509e40182e90ee3d9e5e640 Mon Sep 17 00:00:00 2001 From: ilho kim Date: Wed, 16 Aug 2023 15:55:38 +0900 Subject: [PATCH] Fix static analysis issue Remove of unnecessary copy operation of auto Change-Id: I4ebb88e0c3b32597154ffa3f1df7af51cb5a6ee6 Signed-off-by: ilho kim --- src/unified/unified_installer_factory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unified/unified_installer_factory.cc b/src/unified/unified_installer_factory.cc index cebdbfd..627d8b9 100644 --- a/src/unified/unified_installer_factory.cc +++ b/src/unified/unified_installer_factory.cc @@ -63,7 +63,7 @@ std::string GetPkgTypeFromPath(const std::string& path) { LOG(ERROR) << "Failed to open zip file: " << path; return type; } - for (auto it : kTypeMap) { + for (const auto& it : kTypeMap) { if (unzLocateFile(uf, it.first, 0) == UNZ_OK) { LOG(DEBUG) << "Found: " << it.first; type = it.second; -- 2.7.4