From 2117fc2b167807979367b5e498c02d953a5ea8d5 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 30 Apr 2024 10:15:24 +0200 Subject: [PATCH] QNetworkInformation: remove redundant friend declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Q_DECLARE_PRIVATE already marks the Private as a friend of the Public class. No need to do it manually. Fixes GCC's -Wredundant-decls. Amends 0875626e22ad4e709ddf505e701a8d699559f5b4. Pick-to: 6.5 Task-number: QTBUG-115583 Change-Id: I26f8a42e375c1377c03fe60ccccadc5d0c3b02c5 Reviewed-by: Volker Hilsheimer Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit f24a03a22a863eac18a3981973f6a19aef3116f6) Reviewed-by: Qt Cherry-pick Bot --- src/network/kernel/qnetworkinformation.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/network/kernel/qnetworkinformation.h b/src/network/kernel/qnetworkinformation.h index 4e70a7faf2d..57a49f23c82 100644 --- a/src/network/kernel/qnetworkinformation.h +++ b/src/network/kernel/qnetworkinformation.h @@ -83,7 +83,6 @@ Q_SIGNALS: private: friend struct QNetworkInformationDeleter; - friend class QNetworkInformationPrivate; QNetworkInformation(QNetworkInformationBackend *backend); ~QNetworkInformation() override;