summaryrefslogtreecommitdiffstats
path: root/app/voice
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-05-19 01:34:05 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2020-05-19 01:34:48 +0200
commit2987c682e2c4b46a77ff58e21c10eb9d9b2f4c94 (patch)
tree3d9ebb6e848a91fa158308ab23c490eeabcc0f9b /app/voice
parentddcd73c882db270e3c0b98a4ce81725704022d9f (diff)
use % for string concatenation instead of +
change concatenation method to reduce intermediate allocations. Bug-AGL: SPEC-3364 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I2c93ffb5fc2642bddb41a55ff454132926f241fd
Diffstat (limited to 'app/voice')
-rw-r--r--app/voice/ConfigDialog.qml2
1 files changed, 1 insertions, 1 deletions
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