use % for string concatenation instead of + 38/24538/1 icefish 9.0.2 9.0.3 9.0.4 icefish/9.0.2 icefish/9.0.3 icefish/9.0.4 icefish_9.0.2 icefish_9.0.3 icefish_9.0.4
authorRaquel Medina <raquel.medina@konsulko.com>
Mon, 18 May 2020 23:34:05 +0000 (01:34 +0200)
committerraquel medina <raquel.medina@konsulko.com>
Tue, 19 May 2020 14:48:37 +0000 (14:48 +0000)
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