diff options
author | Juha Vuolle <juha.vuolle@insta.fi> | 2022-03-24 09:08:42 +0200 |
---|---|---|
committer | Juha Vuolle <juha.vuolle@insta.fi> | 2022-03-25 15:15:08 +0200 |
commit | 71a8f966f0e146e4f22e6a49b8d1e8dcdb972278 (patch) | |
tree | 6b876850bf0e084725809e404296111ac24d9854 /src/bluetooth/qbluetoothserver_bluez.cpp | |
parent | 2d5fbc4ff5fa30868085cbe8397ae8683cc6fbad (diff) |
Remove unnecessary variable inits in bluetooth servers
Since 6.2 there are in-class initializations for many of the
variables. In addition the Windows backend does not use
the socket that is created.
Pick-to: 6.2 6.3
Change-Id: I371b9b23aee54c49aa8fc71f86c2e8ecbbbfc407
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserver_bluez.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothserver_bluez.cpp b/src/bluetooth/qbluetoothserver_bluez.cpp index 4733f581..3d8f5eec 100644 --- a/src/bluetooth/qbluetoothserver_bluez.cpp +++ b/src/bluetooth/qbluetoothserver_bluez.cpp @@ -68,11 +68,9 @@ QBluetoothSocket *QBluetoothServerPrivate::createSocketForServer( QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType, QBluetoothServer *parent) - : maxPendingConnections(1), - securityFlags(QBluetooth::Security::Authorization), + : securityFlags(QBluetooth::Security::Authorization), serverType(sType), - q_ptr(parent), - m_lastError(QBluetoothServer::NoError) + q_ptr(parent) { if (sType == QBluetoothServiceInfo::RfcommProtocol) socket = createSocketForServer(QBluetoothServiceInfo::RfcommProtocol); |