X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompressor.cpp;fp=src%2Fcommon%2Fcompressor.cpp;h=bef6dbbea4ebad33b502b856e73f31d532806bda;hp=2b91bebe78a9584da8f6fb0c8df0462889f9fa9a;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hpb=714b39660fe19e7f092880019429c8da76ee2bd5 diff --git a/src/common/compressor.cpp b/src/common/compressor.cpp index 2b91bebe..bef6dbbe 100644 --- a/src/common/compressor.cpp +++ b/src/common/compressor.cpp @@ -33,7 +33,7 @@ Compressor::Compressor(QTcpSocket *socket, Compressor::CompressionLevel level, Q _inflater(nullptr), _deflater(nullptr) { - connect(socket, SIGNAL(readyRead()), SLOT(readData())); + connect(socket, &QIODevice::readyRead, this, &Compressor::readData); bool ok = true; if (level != NoCompression) @@ -48,7 +48,7 @@ Compressor::Compressor(QTcpSocket *socket, Compressor::CompressionLevel level, Q // It's possible that more data has already arrived during the handshake, so readyRead() wouldn't be triggered. // However, we want to give RemotePeer a chance to connect to our signals, so trigger this asynchronously. if (socket->bytesAvailable()) - QTimer::singleShot(0, this, SLOT(readData())); + QTimer::singleShot(0, this, &Compressor::readData); } @@ -126,7 +126,7 @@ qint64 Compressor::read(char *data, qint64 maxSize) // If there's still data left in the socket buffer, make sure to schedule a read if (_socket->bytesAvailable()) - QTimer::singleShot(0, this, SLOT(readData())); + QTimer::singleShot(0, this, &Compressor::readData); return n; }