From 94e5cd4cfb6f0edb60d469330b344ab1524de00d Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Mon, 31 Jul 2023 15:52:11 +0200 Subject: [PATCH] Fix SAM warning Change-Id: I7703e54a9e56011e07c268d0c04bac89bb1c54b9 --- src/notification-daemon/Logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1