Don't use QString::null
This commit is contained in:
parent
2f6f4d9d65
commit
1f23fa27b2
3 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue