diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2017-02-03 09:38:14 +0100 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2017-02-03 11:06:26 +0000 |
commit | bcf6ef95b8304c6cf7a1b79337d7d9b151dfe492 (patch) | |
tree | b3c1a31ce77e548131b376de16eb2c0164e8719c /src/bluetooth/qbluetoothserver_winrt.cpp | |
parent | f07c94c0037a2e9a51b8177edb757063206e00cc (diff) |
winrt: Use custom setSocketDescriptor function
We have to use a similar approach to the one that is used on android
as the ComPtr cannot reliably passed as an int.
Change-Id: Ia52c78d4725fb3240eafa62fcb55531a282c0cd3
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_winrt.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserver_winrt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_winrt.cpp b/src/bluetooth/qbluetoothserver_winrt.cpp index d37fc9e3..61134c1f 100644 --- a/src/bluetooth/qbluetoothserver_winrt.cpp +++ b/src/bluetooth/qbluetoothserver_winrt.cpp @@ -221,7 +221,7 @@ QBluetoothSocket *QBluetoothServer::nextPendingConnection() ComPtr<IStreamSocket> socket = d->pendingConnections.takeFirst(); QBluetoothSocket *newSocket = new QBluetoothSocket(); - bool success = newSocket->d_ptr->setSocketDescriptor(qintptr(socket.Get()), d->serverType); + bool success = newSocket->d_ptr->setSocketDescriptor(socket, d->serverType); if (!success) { delete newSocket; newSocket = 0; |