forked from qt-creator/qt-creator
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
11336fb604
commit
7d3a79c696
@@ -34,7 +34,6 @@
|
||||
#include <coreplugin/modemanager.h>
|
||||
#include <coreplugin/imode.h>
|
||||
|
||||
#include <utils/asconst.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QDesignerFormWindowInterface>
|
||||
@@ -153,7 +152,7 @@ void FormEditorStack::updateFormWindowSelectionHandles()
|
||||
if (Designer::Constants::Internal::debug)
|
||||
qDebug() << "updateFormWindowSelectionHandles";
|
||||
QDesignerFormWindowInterface *activeFormWindow = m_designerCore->formWindowManager()->activeFormWindow();
|
||||
for (const EditorData &fdm : Utils::asConst(m_formEditors)) {
|
||||
for (const EditorData &fdm : qAsConst(m_formEditors)) {
|
||||
const bool active = activeFormWindow == fdm.widgetHost->formWindow();
|
||||
fdm.widgetHost->updateFormWindowSelectionHandles(active);
|
||||
}
|
||||
@@ -184,7 +183,7 @@ void FormEditorStack::modeAboutToChange(Core::Id mode)
|
||||
|
||||
// Sync the editor when entering edit mode
|
||||
if (mode == Core::Constants::MODE_EDIT)
|
||||
for (const EditorData &data : Utils::asConst(m_formEditors))
|
||||
for (const EditorData &data : qAsConst(m_formEditors))
|
||||
data.formWindowEditor->formWindowFile()->syncXmlFromFormWindow();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user