Fix static analysis issue 77/282177/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 03:59:22 +0000 (03:59 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 03:59:22 +0000 (03:59 +0000)
The following issue is fixed:
 - AUTO_CAUSES_COPY

Change-Id: I76704d5c779e67819d9378329b8c3cdc4320fb5e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/esd_cion/cion_ondemand_server.cc

index a7c267b..0301b0f 100644 (file)
@@ -351,7 +351,7 @@ tizen_base::Parcel CionOndemandServer::GetOndemandList(
   tizen_base::Parcel parcel;
   parcel.WriteString(header);
 
-  for (auto peer : ondemand_peer_list_) {
+  for (auto& peer : ondemand_peer_list_) {
     if (peer->GetServiceName() != service_name ||
         aul_app_is_running(peer->GetAppID().c_str()))
       continue;