use % for string concatenation instead of + 32/24532/1
authorRaquel Medina <raquel.medina@konsulko.com>
Mon, 18 May 2020 23:34:05 +0000 (01:34 +0200)
committerRaquel Medina <raquel.medina@konsulko.com>
Mon, 18 May 2020 23:34:48 +0000 (01:34 +0200)
change concatenation method to reduce intermediate
allocations.

Bug-AGL: SPEC-3364
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I2c93ffb5fc2642bddb41a55ff454132926f241fd

app/voice/ConfigDialog.qml

index 9767804..6ab7dea 100644 (file)
@@ -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