summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserviceinfo.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-02-06 13:03:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 08:40:16 +0100
commit477d9f450a1e9767dbf10f4c040e994231674a1f (patch)
tree2f475fd94d9f5e4e20bf79c5296c0f3fc492fd8d /src/bluetooth/qbluetoothserviceinfo.h
parent7d4f4c3083d565af00f1564ae80e5cbfbc338bd5 (diff)
Fix broken QBluetoothServiceInfo::serviceClassUuids() call
It never returned a valid entry due to wrong QVariant conversion. The patch changes the public header with a potential to break BC. A formerly inline function was reimplemented and is no longer inline. This should be safe though as older header versions can still use the previous implementation. Change-Id: If786a366e625a56810b8d4cc682b25d07f72f4e5 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothserviceinfo.h')
-rw-r--r--src/bluetooth/qbluetoothserviceinfo.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo.h b/src/bluetooth/qbluetoothserviceinfo.h
index 0e6555c0..4d3b8612 100644
--- a/src/bluetooth/qbluetoothserviceinfo.h
+++ b/src/bluetooth/qbluetoothserviceinfo.h
@@ -141,7 +141,7 @@ public:
inline void setServiceUuid(const QBluetoothUuid &uuid);
inline QBluetoothUuid serviceUuid() const;
- inline QList<QBluetoothUuid> serviceClassUuids() const;
+ QList<QBluetoothUuid> serviceClassUuids() const;
QBluetoothServiceInfo &operator=(const QBluetoothServiceInfo &other);
@@ -228,12 +228,6 @@ inline QBluetoothUuid QBluetoothServiceInfo::serviceUuid() const
{
return attribute(ServiceId).value<QBluetoothUuid>();
}
-
-inline QList<QBluetoothUuid> QBluetoothServiceInfo::serviceClassUuids() const
-{
- return attribute(ServiceClassIds).value<QList<QBluetoothUuid> >();
-}
-
QT_END_NAMESPACE
#endif