diff options
author | Orgad Shaneh <[email protected]> | 2019-05-06 23:56:41 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2019-05-09 14:13:16 +0000 |
commit | c8f0d3f008953a9a50129bb4641c2b31da6788a4 (patch) | |
tree | a9dbc88131caaa58b743898f941bfe1a306617bf /src/libs/qmljs/qmljsinterpreter.cpp | |
parent | 5cf087ac5d9ff2f7a8b1531fa5c34bd8a714c365 (diff) |
QmlJS: Fix inconsistent copy ctor/operator=
Detected by GCC9.
Change-Id: Ieab7c13c6d66b99cc679c3ac5d4a3da67bcd7767
Reviewed-by: Tim Jenssen <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsinterpreter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index 03083501b61..91f195f8fc3 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -2340,6 +2340,16 @@ Import::Import(const Import &other) valid(other.valid), used(false) { } +Import &Import::operator=(const Import &other) +{ + object = other.object; + info = other.info; + libraryPath = other.libraryPath; + valid = other.valid; + used = false; + return *this; +} + TypeScope::TypeScope(const Imports *imports, ValueOwner *valueOwner) : ObjectValue(valueOwner) , m_imports(imports) |