diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-09-16 11:04:24 +0800 |
---|---|---|
committer | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-09-16 11:04:24 +0800 |
commit | 6318feef026436ada12a9c44a0279d198ee3ae8c (patch) | |
tree | 10903f7ac2588e7d17d37ca39e73264453d041bc /app/Recents.qml | |
parent | 049ff63ded31c90479e3aac10aa5624b2374bae6 (diff) |
fix: Remove qml M126 warningicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1
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: I94130d38621a8775593edab63d409654dd758ef2
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'app/Recents.qml')
-rw-r--r-- | app/Recents.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Recents.qml b/app/Recents.qml index 3eafaac..5a516a1 100644 --- a/app/Recents.qml +++ b/app/Recents.qml @@ -24,11 +24,11 @@ Item { id: root function log_icon(type) { - if (type == RecentCall.MISSED) { + if (type === RecentCall.MISSED) { return './images/ic_call_missed_48px.svg' - } else if (type == RecentCall.RECEIVED) { + } else if (type === RecentCall.RECEIVED) { return './images/ic_call_received_48px.svg' - } else if (type == RecentCall.DIALED) { + } else if (type === RecentCall.DIALED) { return './images/ic_call_made_48px.svg' } } |