diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-12 14:07:49 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-13 13:43:33 +0000 |
commit | a25f0ed5d2605e981cdb774fb1734f168910f3a7 (patch) | |
tree | 1e4da1d86bbc0653cdb1dba8051339a7b06f72f3 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | |
parent | 36d4501a08b1c8708136d3636236a1c6256fbcea (diff) |
Minor cleanup in location handling
Store the line and column in CompiledData::Location as unsigned values.
The qmlSourceCoordinate() function(s) already now act as normalizers,
mapping values <= 0 to 0 as indicator for a missing/invalid line/column.
Valid values start at 1 and therefore there is no need to store negative
values in the location structure.
Coincidentally this also fixes a bunch of warnings about conversions from
signed to unsigned.
Change-Id: Ic69ff395d4991989aede695f2e8c58903f1bd2bf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
0 files changed, 0 insertions, 0 deletions