From: Tomasz Swierczek Date: Mon, 31 Jul 2023 13:52:11 +0000 (+0200) Subject: Fix SAM warning X-Git-Tag: accepted/tizen/unified/20230801.174221^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_9.0;p=platform%2Fcore%2Fsecurity%2Faskuser.git Fix SAM warning Change-Id: I7703e54a9e56011e07c268d0c04bac89bb1c54b9 --- diff --git a/src/notification-daemon/Logic.cpp b/src/notification-daemon/Logic.cpp index 8e6761f..684f5e4 100644 --- a/src/notification-daemon/Logic.cpp +++ b/src/notification-daemon/Logic.cpp @@ -362,7 +362,7 @@ void Logic::extResponse(Protocol::ConnectionFd fd, Protocol::RequestId id, std::vector levels(eventInfo.uniquePrivacies.size()); i = 0; - for (auto p : eventInfo.uniquePrivacies) { + for (auto &p : eventInfo.uniquePrivacies) { finalPrivacyResponses[p] = (received.find(p) == received.end()) ? ASKUSER_UNKNOWN_ERROR : received[p]; levels[i] = clientResponseToPolicy(finalPrivacyResponses[p]); ++i;