diff options
Diffstat (limited to 'examples/network')
-rw-r--r-- | examples/network/loopback/dialog.cpp | 4 | ||||
-rw-r--r-- | examples/network/securesocketclient/main.cpp | 4 | ||||
-rw-r--r-- | examples/network/torrent/peerwireclient.cpp | 2 | ||||
-rw-r--r-- | examples/network/torrent/torrentserver.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/examples/network/loopback/dialog.cpp b/examples/network/loopback/dialog.cpp index a378ccabaa..da5dbce854 100644 --- a/examples/network/loopback/dialog.cpp +++ b/examples/network/loopback/dialog.cpp @@ -99,9 +99,9 @@ void Dialog::start() QMessageBox::StandardButton ret = QMessageBox::critical(this, tr("Loopback"), tr("Unable to start the test: %1.") - .arg(tcpServer.errorString()), + .arg(tcpServer.errorString()), QMessageBox::Retry - | QMessageBox::Cancel); + | QMessageBox::Cancel); if (ret == QMessageBox::Cancel) return; } diff --git a/examples/network/securesocketclient/main.cpp b/examples/network/securesocketclient/main.cpp index de89fafa32..46beaf0d4f 100644 --- a/examples/network/securesocketclient/main.cpp +++ b/examples/network/securesocketclient/main.cpp @@ -50,8 +50,8 @@ int main(int argc, char **argv) QApplication app(argc, argv); if (!QSslSocket::supportsSsl()) { - QMessageBox::information(0, "Secure Socket Client", - "This system does not support OpenSSL."); + QMessageBox::information(0, "Secure Socket Client", + "This system does not support OpenSSL."); return -1; } 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()) { |