forked from qt-creator/qt-creator
QmlJsImport: correct ImportMatchStrength comparison
Change-Id: I9aa775dc23d19e856e38baf9834bedb6903800a9 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
54498da3b4
commit
171adfcfc9
@@ -72,7 +72,7 @@ int ImportMatchStrength::compareMatch(const ImportMatchStrength &o) const
|
||||
int v2 = o.m_match.at(i);
|
||||
if (v1 < v2)
|
||||
return -1;
|
||||
if (v2 > v1)
|
||||
if (v1 > v2)
|
||||
return 1;
|
||||
}
|
||||
if (len1 < len2)
|
||||
|
Reference in New Issue
Block a user