Cleanup
This commit is contained in:
parent
db546e7608
commit
beb7e94cbb
3 changed files with 2 additions and 5 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &LanLinkProvider::connectError);
|
||||
#else
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue