qmljs: Make string code more robust by checking isEmpty over isNull

Authored by kossebau on Jul 22 2018, 3:07 PM.

Description

qmljs: Make string code more robust by checking isEmpty over isNull

Summary:
In all cases empty non-null QStrings match the tested cases as well, so the
code better catches those QString variants as well, not just empty null
ones.
Makes the code looking less fragile (no special handling of null QStrings)

Test Plan: Tests work/fail as before ;)

Reviewers: KDevelop, apol

Reviewed By: KDevelop, apol

Subscribers: kdevelop-devel

Tags: KDevelop

Differential Revision: https://phabricator.kde.org/D14277

Details

Committed
kossebauJul 23 2018, 8:27 AM
Reviewer
KDevelop
Differential Revision
D14277: qmljs: Make string code more robust by checking isEmpty over isNull
Parents
R32:0b16cab515c9: Merge branch '5.2'
Branches
Unknown
Tags
Unknown