From 8119ea3ccb42dee26a9633270b65255cbe0c1c8b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 10 Nov 2023 08:47:33 -0500 Subject: [PATCH] Use auto in NeoChatConnection::setupPushNotifications --- src/neochatconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neochatconnection.cpp b/src/neochatconnection.cpp index 462473e2e..f37342526 100644 --- a/src/neochatconnection.cpp +++ b/src/neochatconnection.cpp @@ -259,7 +259,7 @@ QCoro::Task NeoChatConnection::setupPushNotifications(QString endpoint) // We want to check if this UnifiedPush server has a Matrix gateway // This is because Matrix does not natively support UnifiedPush - const QJsonObject replyJson = QJsonDocument::fromJson(reply->readAll()).object(); + const auto &replyJson = QJsonDocument::fromJson(reply->readAll()).object(); if (replyJson["unifiedpush"_L1]["gateway"_L1].toString() == QStringLiteral("matrix")) { // FIXME: Currently hardcoded for ntfy URLs