From e62e31ec098867fb12c9e0af4f89b6651f93b3b2 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 3 Nov 2024 22:27:45 +0100 Subject: [PATCH] Modernize code --- core/backends/lan/lanlinkprovider.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 2107d7d0c..065e1b9b1 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -48,12 +48,11 @@ LanLinkProvider::LanLinkProvider(bool testMode, bool isDisabled) , m_tcpPort(0) , m_testMode(testMode) , m_combineNetworkChangeTimer(this) + , m_disabled(isDisabled) #ifdef KDECONNECT_MDNS , m_mdnsDiscovery(this) #endif { - this->m_disabled = isDisabled; - m_combineNetworkChangeTimer.setInterval(0); // increase this if waiting a single event-loop iteration is not enough m_combineNetworkChangeTimer.setSingleShot(true); connect(&m_combineNetworkChangeTimer, &QTimer::timeout, this, &LanLinkProvider::combinedOnNetworkChange);