Port away from QString::null

This commit is contained in:
David Faure 2019-07-20 18:36:47 +02:00
parent f765ffb186
commit 8f1660d580
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,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;

View file

@ -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