From beb7e94cbbc381017b40f119bda802012b964b8c Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Tue, 27 Jun 2023 13:15:11 +0200 Subject: [PATCH] Cleanup --- core/backends/bluetooth/bluetoothdevicelink.cpp | 2 +- core/backends/lan/lanlinkprovider.cpp | 3 --- core/backends/loopback/loopbackdevicelink.cpp | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/backends/bluetooth/bluetoothdevicelink.cpp b/core/backends/bluetooth/bluetoothdevicelink.cpp index 925b4ccf9..687990538 100644 --- a/core/backends/bluetooth/bluetoothdevicelink.cpp +++ b/core/backends/bluetooth/bluetoothdevicelink.cpp @@ -55,7 +55,7 @@ void BluetoothDeviceLink::dataReceived() // qCDebug(KDECONNECT_CORE) << "BluetoothDeviceLink dataReceived" << packet; - NetworkPacket packet((QString())); + NetworkPacket packet; NetworkPacket::unserialize(serializedPacket, &packet); if (packet.hasPayloadTransferInfo()) { diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 763afdb42..10b294bae 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -235,8 +235,6 @@ void LanLinkProvider::udpBroadcastReceived() NetworkPacket *receivedPacket = new NetworkPacket(); bool success = NetworkPacket::unserialize(datagram, receivedPacket); - // qCDebug(KDECONNECT_CORE) << "udp connection from " << receivedPacket->; - // qCDebug(KDECONNECT_CORE) << "Datagram " << datagram.data() ; if (!success) { @@ -314,7 +312,6 @@ void LanLinkProvider::tcpSocketConnected() return; } - // TODO Delete me? #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) disconnect(socket, QOverload::of(&QAbstractSocket::error), this, &LanLinkProvider::connectError); #else diff --git a/core/backends/loopback/loopbackdevicelink.cpp b/core/backends/loopback/loopbackdevicelink.cpp index e002b2371..2a875f578 100644 --- a/core/backends/loopback/loopbackdevicelink.cpp +++ b/core/backends/loopback/loopbackdevicelink.cpp @@ -16,7 +16,7 @@ LoopbackDeviceLink::LoopbackDeviceLink(LoopbackLinkProvider *parent) bool LoopbackDeviceLink::sendPacket(NetworkPacket &input) { - NetworkPacket output((QString())); + NetworkPacket output; NetworkPacket::unserialize(input.serialize(), &output); // LoopbackDeviceLink does not need deviceTransferInfo