summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qbluetoothsocket_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_osx.mm b/src/bluetooth/qbluetoothsocket_osx.mm
index f74c14f8..8af085ac 100644
--- a/src/bluetooth/qbluetoothsocket_osx.mm
+++ b/src/bluetooth/qbluetoothsocket_osx.mm
@@ -196,7 +196,7 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize)
// IOBluetoothL2CAPChannel is buffered (writeAsync).
if (!txBuffer.size())
- QMetaObject::invokeMethod(this, "_q_writeNotify", Qt::QueuedConnection);
+ QMetaObject::invokeMethod(this, [this](){_q_writeNotify();}, Qt::QueuedConnection);
char *dst = txBuffer.reserve(int(maxSize));
std::copy(data, data + maxSize, dst);