From 1702a37a3955f449210fe3874cfcd35bb08417ad Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Fri, 5 Jan 2024 05:58:53 +0200 Subject: Change QRestReply json return type to QJsonDocument The json return type and function naming has gone back and forth. Let's go with QJsonDocument after all, and add new overloads in future if necessary. Pick-to: 6.7 Task-number: QTBUG-119002 Change-Id: I3f9de0e6cba7d5c52d016d252d65b81f345af050 Reviewed-by: Marc Mutz --- .../doc/snippets/code/src_network_access_qrestaccessmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/doc/snippets/code') diff --git a/src/network/doc/snippets/code/src_network_access_qrestaccessmanager.cpp b/src/network/doc/snippets/code/src_network_access_qrestaccessmanager.cpp index fcc8dbaef52..4ef077d0c26 100644 --- a/src/network/doc/snippets/code/src_network_access_qrestaccessmanager.cpp +++ b/src/network/doc/snippets/code/src_network_access_qrestaccessmanager.cpp @@ -26,7 +26,7 @@ manager->post(request, myJson, this, [this](QRestReply *reply) { if (!reply->isSuccess()) { // ... } - if (std::optional json = reply->json()) { + if (std::optional json = reply->json()) { // use *json } }); @@ -37,7 +37,7 @@ manager->post(request, myJson, this, [this](QRestReply *reply) { manager->get(request, this, [this](QRestReply *reply) { if (!reply->isSuccess()) // handle error - if (std::optional json = reply->json()) + if (std::optional json = reply->json()) // use *json }); //! [3] -- cgit v1.2.3