forked from qt-creator/qt-creator
Debugger: Work around a Qt deprecation warning
Change-Id: Ia396ec2a4b50b39692d659d107ef5bb7e5e5e5bd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -318,7 +318,7 @@ QmlEngine::~QmlEngine()
|
|||||||
for (iter = d->sourceEditors.begin(); iter != d->sourceEditors.end(); ++iter) {
|
for (iter = d->sourceEditors.begin(); iter != d->sourceEditors.end(); ++iter) {
|
||||||
QWeakPointer<BaseTextEditor> textEditPtr = iter.value();
|
QWeakPointer<BaseTextEditor> textEditPtr = iter.value();
|
||||||
if (textEditPtr)
|
if (textEditPtr)
|
||||||
documentsToClose << textEditPtr.data()->document();
|
documentsToClose << textEditPtr.toStrongRef().data()->document();
|
||||||
}
|
}
|
||||||
EditorManager::closeDocuments(Utils::toList(documentsToClose));
|
EditorManager::closeDocuments(Utils::toList(documentsToClose));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user