summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsinterpreter.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2019-05-06 23:56:41 +0300
committerOrgad Shaneh <orgads@gmail.com>2019-05-09 14:13:16 +0000
commitc8f0d3f008953a9a50129bb4641c2b31da6788a4 (patch)
treea9dbc88131caaa58b743898f941bfe1a306617bf /src/libs/qmljs/qmljsinterpreter.cpp
parent5cf087ac5d9ff2f7a8b1531fa5c34bd8a714c365 (diff)
downloadqt-creator-c8f0d3f008953a9a50129bb4641c2b31da6788a4.tar.gz
QmlJS: Fix inconsistent copy ctor/operator=
Detected by GCC9. Change-Id: Ieab7c13c6d66b99cc679c3ac5d4a3da67bcd7767 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r--src/libs/qmljs/qmljsinterpreter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index 03083501b6..91f195f8fc 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)