forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
5cf087ac5d
commit
c8f0d3f008
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user