From 03a4d3a071a71286f95c8923b77e63b1908f9bca Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Tue, 19 May 2020 01:34:05 +0200 Subject: 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 --- app/voice/ConfigDialog.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg