forked from qt-creator/qt-creator
QmlDesigner: no need to copy the list
Change-Id: Ie6d5c1e7a0baaec9f6065854e451bb5d767619e6 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
@@ -299,7 +299,7 @@ bool DocumentManager::hasCurrentDesignDocument() const
|
||||
return m_currentDesignDocument.data();
|
||||
}
|
||||
|
||||
void DocumentManager::removeEditors(QList<Core::IEditor *> editors)
|
||||
void DocumentManager::removeEditors(const QList<Core::IEditor *> &editors)
|
||||
{
|
||||
foreach (Core::IEditor *editor, editors)
|
||||
delete m_designDocumentHash.take(editor).data();
|
||||
|
@@ -49,7 +49,7 @@ public:
|
||||
DesignDocument *currentDesignDocument() const;
|
||||
bool hasCurrentDesignDocument() const;
|
||||
|
||||
void removeEditors(QList<Core::IEditor*> editors);
|
||||
void removeEditors(const QList<Core::IEditor *> &editors);
|
||||
|
||||
static void goIntoComponent(const ModelNode &modelNode);
|
||||
|
||||
|
Reference in New Issue
Block a user