summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qbluetoothsocket_bluez.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp
index 803df6df..162a1a0b 100644
--- a/src/bluetooth/qbluetoothsocket_bluez.cpp
+++ b/src/bluetooth/qbluetoothsocket_bluez.cpp
@@ -251,8 +251,7 @@ 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 +506,7 @@ 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);
}
}