QmlJS: Fix inconsistent copy ctor/operator=

Detected by GCC9.

Change-Id: Ieab7c13c6d66b99cc679c3ac5d4a3da67bcd7767
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Orgad Shaneh
2019-05-06 23:56:41 +03:00
committed by Orgad Shaneh
parent 5cf087ac5d
commit c8f0d3f008
9 changed files with 11 additions and 23 deletions

View File

@@ -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)