forked from qt-creator/qt-creator
ScxmlEditor: Modernize
modernize-* Change-Id: I72a72cf5e9327956fdc0e5fc6f552bfc03d2122c Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -89,8 +89,8 @@ void ScxmlEditorStack::modeAboutToChange(Core::Id m)
|
||||
{
|
||||
// Sync the editor when entering edit mode
|
||||
if (m == Core::Constants::MODE_EDIT) {
|
||||
for (const ScxmlTextEditor *editor: m_editors)
|
||||
if (ScxmlEditorDocument *document = qobject_cast<ScxmlEditorDocument*>(editor->textDocument()))
|
||||
for (auto editor: qAsConst(m_editors))
|
||||
if (auto document = qobject_cast<ScxmlEditorDocument*>(editor->textDocument()))
|
||||
document->syncXmlFromDesignWidget();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user