Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Lysenko <lysenkoalexmail@gmail.com>2021-06-16 12:38:18 +0300
committerGitHub <noreply@github.com>2021-06-16 12:38:18 +0300
commit4715f63580f64d7baaba072f6c69632ccaa8a187 (patch)
tree201f42256d996e8aad25a70e929821d85e85011c /src/gui/servernotificationhandler.cpp
parent09b538f4887d77685983dcb71d1ef6c1075a1b49 (diff)
Remove possible qt containers detach (#8727)
* Replaced obsolete foreach-loops with for-loops * Added a copy of queries into SqlDatabase::close * Used const reference to avoid unneeded copying * Fixed Qt containers possible detach within for-loop * Removed unneeded copies before for-loops
Diffstat (limited to 'src/gui/servernotificationhandler.cpp')
-rw-r--r--src/gui/servernotificationhandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/servernotificationhandler.cpp b/src/gui/servernotificationhandler.cpp
index bd59f7483..e1c331871 100644
--- a/src/gui/servernotificationhandler.cpp
+++ b/src/gui/servernotificationhandler.cpp
@@ -65,8 +65,7 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
return;
}
- auto notifies = json.object().value("ocs").toObject().value("data").toArray();
-
+ const auto &notifies = json.object().value(QLatin1String("ocs")).toObject().value(QLatin1String("data")).toArray();
AccountState *ai = qvariant_cast<AccountState *>(sender()->property("AccountStatePtr"));
ActivityList list;