summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.h
diff options
context:
space:
mode:
authorGravatar Alex Blasche <alexander.blasche@qt.io>2017-06-27 13:50:19 +0200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-06-27 11:03:19 -0700
commit81dabe5ace3091656cdbac57598699bb3b9beea7 (patch)
tree5afa127e06b675d27df998844fa1b77da0f0fb43 /core/qt-ble.h
parent4f3a9cdb354215f036d51457eef01a066f1cc62f (diff)
downloadsubsurface-81dabe5ace3091656cdbac57598699bb3b9beea7.tar.gz
Fix incorrect uuid check due to temporary char* in QString::toUtf8()
toUtf8() creates a temporary char* representation which is assigned to uuid. As soon the object created by toUtf8() gets destroyed, the uuid pointer points to releases memory. The intention is to check that we don't have one of the standard 16bit Bluetooth uuids. That's the purpose of QBluetoothUuid::toUInt16(). Signed-off-by: Alex Blasche <alexander.blasche@qt.io> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/qt-ble.h')
0 files changed, 0 insertions, 0 deletions