diff options
Diffstat (limited to 'src/bluetoothsettings')
-rw-r--r-- | src/bluetoothsettings/bluez/bluetoothdevice_p.cpp | 5 | ||||
-rw-r--r-- | src/bluetoothsettings/discoverymodel.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/bluetoothsettings/bluez/bluetoothdevice_p.cpp b/src/bluetoothsettings/bluez/bluetoothdevice_p.cpp index ded84f2..5badc74 100644 --- a/src/bluetoothsettings/bluez/bluetoothdevice_p.cpp +++ b/src/bluetoothsettings/bluez/bluetoothdevice_p.cpp @@ -68,8 +68,8 @@ OrgBluezDevice1Interface* BluetoothDevicePrivate::findDevice() const QString &iface = jt.key(); const QVariantMap &ifaceValues = jt.value(); if (iface == QStringLiteral("org.bluez.Device1")) { - if (ifaceValues["Address"] == m_address) { - OrgBluezDevice1Interface *devIf = new OrgBluezDevice1Interface("org.bluez", path.path(), QDBusConnection::systemBus()); + if (ifaceValues[QStringLiteral("Address")] == m_address) { + OrgBluezDevice1Interface *devIf = new OrgBluezDevice1Interface(QStringLiteral("org.bluez"), path.path(), QDBusConnection::systemBus()); return devIf; } } @@ -78,7 +78,6 @@ OrgBluezDevice1Interface* BluetoothDevicePrivate::findDevice() return NULL; } - void BluetoothDevicePrivate::connectDevice() { OrgBluezDevice1Interface *dev = findDevice(); diff --git a/src/bluetoothsettings/discoverymodel.cpp b/src/bluetoothsettings/discoverymodel.cpp index 36d3a2e..1a9410b 100644 --- a/src/bluetoothsettings/discoverymodel.cpp +++ b/src/bluetoothsettings/discoverymodel.cpp @@ -222,7 +222,7 @@ QVariant DiscoveryModel::data(const QModelIndex & index, int role) const case DiscoveryModel::Connected: return item->connected(); default: - return ""; + return QVariant(); } } |