From: ilho kim Date: Wed, 16 Aug 2023 05:55:30 +0000 (+0900) Subject: Fix static analysis issue X-Git-Tag: accepted/tizen/unified/20230818.102954~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F297268%2F1;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Fix static analysis issue Remove of unnecessary copy operation of shared_ptr Change-Id: I2213ed9e69fbf59813cc6576c1d1c3297cdfad3a Signed-off-by: ilho kim --- diff --git a/src/pkg_upgrade/include/logging.hh b/src/pkg_upgrade/include/logging.hh index 6ed63bc..fb0ba13 100644 --- a/src/pkg_upgrade/include/logging.hh +++ b/src/pkg_upgrade/include/logging.hh @@ -127,7 +127,7 @@ class LogCore { } void Log(LogLevel level, const std::string& tag, const std::string& log) { - for (auto backend : backend_list_) + for (auto& backend : backend_list_) backend->WriteLog(level, tag, log); }