Fix coverity issue for auto_causes_copy 59/295959/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093643 accepted/tizen/unified/20230719.102849 tizen_8.0_m2_release
authorDongsun Lee <ds73.lee@samsung.com>
Tue, 18 Jul 2023 01:00:47 +0000 (10:00 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Tue, 18 Jul 2023 01:00:47 +0000 (10:00 +0900)
Change-Id: I8176a7014f6a260826c1aee095bd0e8b2086fd2b

src/dbus/connection.cpp

index 6cae17d447a5f007d3198235efd900a17ac26120..d491e3af084aa395c496476ecd779f2c8def97b1 100644 (file)
@@ -56,7 +56,7 @@ Connection::Connection(const std::string& address) :
 
 Connection::~Connection()
 {
-       for (auto client : watchedClients) {
+       for (auto& client : watchedClients) {
                g_bus_unwatch_name(client.second);
        }