From eac7433f794b6eca17521558dd4915b7593effc3 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Wed, 27 Dec 2017 11:14:15 +0900 Subject: Fix build with libhomescreen and qlibwindowmanager with bitbake https://gerrit.automotivelinux.org/gerrit/#/c/12579/ broke the build with bitbake because tests are not perfect. libhomescreen: pkg name used to be homescreen but now it is libhomescreen qlibwindowmanager: the test needs Qt Change-Id: Ib43ac5d0cd1189a3490a60b54760fefc9b15954c Signed-off-by: Tasuku Suzuki --- app/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index a75e779..856acfc 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -55,10 +55,11 @@ int main(int argc, char *argv[]) QQmlApplicationEngine engine; QQmlContext *context = engine.rootContext(); QUrl bindingAddress; + int port = 0; QString secret; if (positionalArguments.length() == 2) { - int port = positionalArguments.takeFirst().toInt(); - QString secret = positionalArguments.takeFirst(); + port = positionalArguments.takeFirst().toInt(); + secret = positionalArguments.takeFirst(); bindingAddress.setScheme(QStringLiteral("ws")); bindingAddress.setHost(QStringLiteral("localhost")); bindingAddress.setPort(port); @@ -92,7 +93,7 @@ int main(int argc, char *argv[]) // HomeScreen LibHomeScreen* hs = new LibHomeScreen(); std::string token = secret.toStdString(); - hs->init(port, secret.to); + hs->init(port, token.c_str()); // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [qwm, myname](json_object *object){ json_object *appnameJ = nullptr; -- cgit 1.2.3-korg