diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 803df6df25d978a0f5bf2921b368088e5b635f0e..83d8c30801d89c50993f22724071f7f22f6c7ea4 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -251,8 +251,8 @@ void QBluetoothSocketPrivate::_q_writeNotify() break; default: // every other case returns error - errorString = QBluetoothSocket::tr("Network Error: %1"); - errorString.arg(qt_error_string(errno)); + errorString = QBluetoothSocket::tr("Network Error: %1") + .arg(qt_error_string(errno)); q->setSocketError(QBluetoothSocket::NetworkError); break; } @@ -507,8 +507,8 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize) sz = 0; break; default: - errorString = QBluetoothSocket::tr("Network Error: %1"); - errorString.arg(qt_error_string(errno)); + errorString = QBluetoothSocket::tr("Network Error: %1") + .arg(qt_error_string(errno)); q->setSocketError(QBluetoothSocket::NetworkError); } }