diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-03-11 15:36:22 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-13 08:35:32 +0100 |
commit | 61f2f050a750d286791e8848bcba2e990311ba29 (patch) | |
tree | 4ec6da2da70f9869fff64e7613213965389f17d9 /src/bluetooth/qbluetoothsocket_bluez.cpp | |
parent | eb52c891559a2c763dc682c82be9b03bd09316b3 (diff) |
Fix a few TODOs around the source code and remove obsolete ones
Change-Id: I01e867cb5efb231e7c85b0d106897b2f31448977
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothsocket_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothsocket_bluez.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 825c6cd7..6aad6603 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -453,6 +453,7 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize) if (::write(socket, data, maxSize) != maxSize) { errorString = QBluetoothSocket::tr("Network Error"); q->setSocketError(QBluetoothSocket::NetworkError); + return -1; } emit q->bytesWritten(maxSize); @@ -462,7 +463,7 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize) else { if(!connectWriteNotifier) - return 0; + return -1; if(txBuffer.size() == 0) { connectWriteNotifier->setEnabled(true); |