summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/deviceinfo.cpp
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2014-02-26 12:09:23 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-27 14:56:08 +0100
commiteb632012c2cf13922b08f4e2606d1452da9aaacb (patch)
tree78433495f7811e6f89054afe38b125a4e96c671b /examples/bluetooth/lowenergyscanner/deviceinfo.cpp
parent6de4ff7b44d32d2f0fea277d856ce4d3fe321c7e (diff)
Lowenergyscanner example improved
Error handling improved, code styling improved. Change-Id: I1f35c6a6ef9641cb445fdbe55e0127b554e50ebc Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/deviceinfo.cpp')
-rw-r--r--examples/bluetooth/lowenergyscanner/deviceinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/deviceinfo.cpp b/examples/bluetooth/lowenergyscanner/deviceinfo.cpp
index 433caf6c..552f5ec3 100644
--- a/examples/bluetooth/lowenergyscanner/deviceinfo.cpp
+++ b/examples/bluetooth/lowenergyscanner/deviceinfo.cpp
@@ -51,12 +51,12 @@ DeviceInfo::DeviceInfo(const QBluetoothDeviceInfo &d)
Q_EMIT deviceChanged();
}
-QString DeviceInfo::getAddress()
+QString DeviceInfo::getAddress() const
{
return device.address().toString();
}
-QString DeviceInfo::getName()
+QString DeviceInfo::getName() const
{
return device.name();
}