From: Li Xiaoming Date: Fri, 27 Sep 2019 12:02:10 +0000 (+0800) Subject: fix(IconItem.qml): Remove qml M126 warning X-Git-Tag: 8.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=e4634efdc6b985001c079f61368e6780127371f2;p=apps%2Flauncher.git fix(IconItem.qml): Remove qml M126 warning Message: == and != may perform type coercion, use === or !== to avoid it. Description: The non-strict equality comparison is allowed to convert its arguments to a common type. That can lead to unexpected results such as ' \t\r\n' == 0 being true. Use the strict equality operators === and !== and be explicit about conversions you require. Bug-AGL: SPEC-2814 Change-Id: I96de9ecace7ea519946c0df739db9753d44d2dfd Signed-off-by: Li Xiaoming --- diff --git a/launcher/qml/IconItem.qml b/launcher/qml/IconItem.qml index c15a3da..5adbe81 100644 --- a/launcher/qml/IconItem.qml +++ b/launcher/qml/IconItem.qml @@ -97,7 +97,7 @@ Item { states: [ State { name: 'active' - when: loc.currentId == model.id + when: loc.currentId === model.id PropertyChanges { target: container x: loc.mouseX - width/2