From 1f23fa27b2c5b367984af3537226c46ebf77673d Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 3 Feb 2019 02:00:36 +0100 Subject: [PATCH] Don't use QString::null --- core/backends/bluetooth/bluetoothdevicelink.cpp | 2 +- core/backends/lan/landevicelink.cpp | 2 +- core/backends/loopback/loopbackdevicelink.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/backends/bluetooth/bluetoothdevicelink.cpp b/core/backends/bluetooth/bluetoothdevicelink.cpp index 691066eff..a2d13d11e 100644 --- a/core/backends/bluetooth/bluetoothdevicelink.cpp +++ b/core/backends/bluetooth/bluetoothdevicelink.cpp @@ -79,7 +79,7 @@ void BluetoothDeviceLink::dataReceived() //qCDebug(KDECONNECT_CORE) << "BluetoothDeviceLink dataReceived" << packet; - NetworkPacket packet(QString::null); + NetworkPacket packet((QString())); NetworkPacket::unserialize(serializedPacket, &packet); if (packet.type() == PACKET_TYPE_PAIR) { diff --git a/core/backends/lan/landevicelink.cpp b/core/backends/lan/landevicelink.cpp index c6b413fac..6bcd915b5 100644 --- a/core/backends/lan/landevicelink.cpp +++ b/core/backends/lan/landevicelink.cpp @@ -117,7 +117,7 @@ void LanDeviceLink::dataReceived() if (m_socketLineReader->bytesAvailable() == 0) return; const QByteArray serializedPacket = m_socketLineReader->readLine(); - NetworkPacket packet(QString::null); + NetworkPacket packet((QString())); NetworkPacket::unserialize(serializedPacket, &packet); //qCDebug(KDECONNECT_CORE) << "LanDeviceLink dataReceived" << serializedPacket; diff --git a/core/backends/loopback/loopbackdevicelink.cpp b/core/backends/loopback/loopbackdevicelink.cpp index 3e3423248..01e3f402f 100644 --- a/core/backends/loopback/loopbackdevicelink.cpp +++ b/core/backends/loopback/loopbackdevicelink.cpp @@ -35,7 +35,7 @@ QString LoopbackDeviceLink::name() bool LoopbackDeviceLink::sendPacket(NetworkPacket& input) { - NetworkPacket output(QString::null); + NetworkPacket output((QString())); NetworkPacket::unserialize(input.serialize(), &output); //LoopbackDeviceLink does not need deviceTransferInfo