Fix SAM warning 38/296538/1 accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev tizen_8.0 tizen_9.0 accepted/tizen/8.0/unified/20231005.093541 accepted/tizen/9.0/unified/20241030.233356 accepted/tizen/unified/20230801.174221 accepted/tizen/unified/dev/20240620.005557 tizen_8.0_m2_release tizen_9.0_m2_release
authorTomasz Swierczek <t.swierczek@samsung.com>
Mon, 31 Jul 2023 13:52:11 +0000 (15:52 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Mon, 31 Jul 2023 13:52:11 +0000 (15:52 +0200)
Change-Id: I7703e54a9e56011e07c268d0c04bac89bb1c54b9

src/notification-daemon/Logic.cpp

index 8e6761f7659fc65f7bfd9c7962a3c22717806f12..684f5e47ccbc093f33856ed8eba9acd90600f635 100644 (file)
@@ -362,7 +362,7 @@ void Logic::extResponse(Protocol::ConnectionFd fd, Protocol::RequestId id,
         std::vector<std::string> 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;