diff options
Diffstat (limited to 'examples/network/torrent')
-rw-r--r-- | examples/network/torrent/peerwireclient.cpp | 2 | ||||
-rw-r--r-- | examples/network/torrent/torrentserver.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/torrent/peerwireclient.cpp b/examples/network/torrent/peerwireclient.cpp index a0be01d363..2b5fe3ada1 100644 --- a/examples/network/torrent/peerwireclient.cpp +++ b/examples/network/torrent/peerwireclient.cpp @@ -215,7 +215,7 @@ void PeerWireClient::sendPieceList(const QBitArray &bitField) // Don't send the bitfield if it's all zeros. if (bitField.count(true) == 0) - return; + return; int bitFieldSize = bitField.size(); int size = (bitFieldSize + 7) / 8; diff --git a/examples/network/torrent/torrentserver.cpp b/examples/network/torrent/torrentserver.cpp index 2196863ca0..0a9d836098 100644 --- a/examples/network/torrent/torrentserver.cpp +++ b/examples/network/torrent/torrentserver.cpp @@ -64,7 +64,7 @@ void TorrentServer::removeClient(TorrentClient *client) void TorrentServer::incomingConnection(qintptr socketDescriptor) { PeerWireClient *client = - new PeerWireClient(ConnectionManager::instance()->clientId(), this); + new PeerWireClient(ConnectionManager::instance()->clientId(), this); if (client->setSocketDescriptor(socketDescriptor)) { if (ConnectionManager::instance()->canAddConnection() && !clients.isEmpty()) { |