diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-08-22 12:10:21 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-08-24 05:44:13 +0000 |
commit | 89e92af7948cde05bbb07a082835344f3f3adb4e (patch) | |
tree | 92a51d79b8101609b1dd56f9583a5b4d07762313 /examples/bluetooth/lowenergyscanner/main.cpp | |
parent | 4a20dda27259fad1468370860162b8f22ca53072 (diff) |
Cleanup lowenergyscanner example with clang tidy and clazy help
Change-Id: Iaaf169b1ac9b3d4c348d9cabf737b395198a921f
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/main.cpp')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/main.cpp b/examples/bluetooth/lowenergyscanner/main.cpp index b3fac945..351ab13a 100644 --- a/examples/bluetooth/lowenergyscanner/main.cpp +++ b/examples/bluetooth/lowenergyscanner/main.cpp @@ -62,11 +62,11 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); Device d; - QQuickView *view = new QQuickView; + auto view = new QQuickView; view->rootContext()->setContextProperty("device", &d); view->setSource(QUrl("qrc:/assets/main.qml")); view->setResizeMode(QQuickView::SizeRootObjectToView); view->show(); - return app.exec(); + return QGuiApplication::exec(); } |