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
@@ -458,14 +458,6 @@ Snapshot::~Snapshot()
|
||||
{
|
||||
}
|
||||
|
||||
Snapshot::Snapshot(const Snapshot &o)
|
||||
: _documents(o._documents),
|
||||
_documentsByPath(o._documentsByPath),
|
||||
_libraries(o._libraries),
|
||||
_dependencies(o._dependencies)
|
||||
{
|
||||
}
|
||||
|
||||
void Snapshot::insert(const Document::Ptr &document, bool allowInvalid)
|
||||
{
|
||||
if (document && (allowInvalid || document->qmlProgram() || document->jsProgram())) {
|
||||
|
||||
Reference in New Issue
Block a user