aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsplugindumper.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@qt.io>2021-07-19 14:05:01 +0200
committerFawzi Mohamed <fawzi.mohamed@qt.io>2021-07-20 08:43:18 +0000
commitdc654cfcba7f1c446ea1bd32e326d3f8c747cf4f (patch)
treee3c799fdfe9b73c83de6cd9e1f644aa55eddbf34 /src/libs/qmljs/qmljsplugindumper.cpp
parent42fe70b93ee675b68e184eb09e2edbe94983e25b (diff)
qmljs: use SourceLocation::length in reformatter instead of isValid
isValid becomes more strict in Qt6.2, meaning invalid (default initialized) SourceLocation. Reformatter used it to check for absent (i.e. 0 length) tokens, which might still be valid (according to the new definition) as they mark the start or end of an AST element. Thus use length != 0 instead of isValid() in these places. Change-Id: I4fbc1466ccef6b4b4e2c1d6b5169189b34dc6ae3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/libs/qmljs/qmljsplugindumper.cpp')
0 files changed, 0 insertions, 0 deletions