From: Raquel Medina Date: Mon, 18 May 2020 23:34:05 +0000 (+0200) Subject: use % for string concatenation instead of + X-Git-Tag: 9.99.1~4 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=2987c682e2c4b46a77ff58e21c10eb9d9b2f4c94;p=apps%2Fsettings.git use % for string concatenation instead of + change concatenation method to reduce intermediate allocations. Bug-AGL: SPEC-3364 Signed-off-by: Raquel Medina Change-Id: I2c93ffb5fc2642bddb41a55ff454132926f241fd --- diff --git a/app/voice/ConfigDialog.qml b/app/voice/ConfigDialog.qml index 9767804..6ab7dea 100644 --- a/app/voice/ConfigDialog.qml +++ b/app/voice/ConfigDialog.qml @@ -219,7 +219,7 @@ Dialog { * FIXME: Generated URL is currently Alexa-specific, work around for * now by checking agent name and only displaying for Alexa. */ - data: root.thisAgentLoginUrl + '?cbl-code=' + root.thisAgentLoginCode + data: "%1?cbl-code=%2".arg(root.thisAgentLoginUrl).arg(root.thisAgentLoginCode) visible: root.thisAgentName === "Alexa" && root.thisAgentAuthState !== "REFRESHED" && root.tokenValid background: 'white' margin: 16