From c2be9180b7430221e9136afb1a8c2a752ac2710f Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 23 Sep 2020 10:09:42 +0200 Subject: Replace Q_REQUIRED_RESULT with [[nodiscard]] It was already used many places directly making the code inconsistent. Change-Id: I3b14bc6c333640fb3ba33c71eba97e78c973e44b Reviewed-by: Lars Knoll --- src/network/kernel/qnetconmonitor_win.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/network/kernel') diff --git a/src/network/kernel/qnetconmonitor_win.cpp b/src/network/kernel/qnetconmonitor_win.cpp index bf771f9451..c3f28d77b1 100644 --- a/src/network/kernel/qnetconmonitor_win.cpp +++ b/src/network/kernel/qnetconmonitor_win.cpp @@ -122,11 +122,11 @@ public: HRESULT STDMETHODCALLTYPE NetworkConnectionPropertyChanged( GUID connectionId, NLM_CONNECTION_PROPERTY_CHANGE flags) override; - Q_REQUIRED_RESULT + [[nodiscard]] bool setTarget(const QNetworkInterface &iface); - Q_REQUIRED_RESULT + [[nodiscard]] bool startMonitoring(); - Q_REQUIRED_RESULT + [[nodiscard]] bool stopMonitoring(); private: @@ -151,9 +151,9 @@ public: QNetworkConnectionMonitorPrivate(); ~QNetworkConnectionMonitorPrivate(); - Q_REQUIRED_RESULT + [[nodiscard]] bool setTargets(const QHostAddress &local, const QHostAddress &remote); - Q_REQUIRED_RESULT + [[nodiscard]] bool startMonitoring(); void stopMonitoring(); @@ -510,7 +510,7 @@ public: HRESULT STDMETHODCALLTYPE ConnectivityChanged(NLM_CONNECTIVITY newConnectivity) override; - Q_REQUIRED_RESULT + [[nodiscard]] bool start(); bool stop(); @@ -532,7 +532,7 @@ public: QNetworkStatusMonitorPrivate(); ~QNetworkStatusMonitorPrivate(); - Q_REQUIRED_RESULT + [[nodiscard]] bool start(); void stop(); -- cgit v1.2.3