diff options
author | Erik Verbruggen <[email protected]> | 2014-03-04 12:29:03 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-05 13:14:10 +0100 |
commit | 7e87bf0bb7dd5b64fca0fedce046d7ab0475a4c6 (patch) | |
tree | 5124f2f9f28663403c81779cda612c1f939dc725 /src/qml/compiler/qv4compileddata_p.h | |
parent | 6269e4fafc882b9727fe06b405b876af99060d8c (diff) |
Fix MSVC2012 compiler warnings.
Tested on both win32 and win64.
Change-Id: I47755e2da51829e61e1452eaaf84a057224b478b
Reviewed-by: Simon Hausmann <[email protected]>
Reviewed-by: Gunnar Sletta <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index 1f6bdfb2cf..026ce630d2 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -69,6 +69,9 @@ struct Location { qint32 line; qint32 column; + + Location(): line(-1), column(-1) {} + inline bool operator<(const Location &other) const { return line < other.line || (line == other.line && column < other.column); @@ -506,6 +509,8 @@ struct Import qint32 minorVersion; Location location; + + Import(): type(0), uriIndex(0), qualifierIndex(0), majorVersion(0), minorVersion(0) {} }; struct QmlUnit |