aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/common
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-04-16 16:55:31 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-04-17 09:22:05 +0200
commit9e25811a72f2fe45768fa8f6b7fc487adc7e30d4 (patch)
tree61fc5ccd57c102400ce2254f8499442efb5f1ea9 /src/qml/common
parentac009a9671ad97e9bc599676c35acd4628e45e7b (diff)
Add a more convenient ctor for QV4::CompiledData::Location
Change-Id: Ifcb06538f723f11e27085075783bb59f66428489 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/common')
-rw-r--r--src/qml/common/qv4compileddata_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h
index 7d44126b13..232ac9c3c3 100644
--- a/src/qml/common/qv4compileddata_p.h
+++ b/src/qml/common/qv4compileddata_p.h
@@ -130,6 +130,13 @@ struct Location
};
Location() : _dummy(0) { }
+ Location(quint32 l, quint32 c)
+ {
+ line = l;
+ column = c;
+ Q_ASSERT(line == l);
+ Q_ASSERT(column == c);
+ }
inline bool operator<(const Location &other) const {
return line < other.line ||