mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Replace foreach function by for, please try and report problem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -48,7 +48,7 @@ PropertiesEditorDockWidget::~PropertiesEditorDockWidget()
|
||||
*/
|
||||
void PropertiesEditorDockWidget::clear()
|
||||
{
|
||||
foreach (PropertiesEditorWidget *editor, m_editor_list)
|
||||
for (PropertiesEditorWidget *editor: m_editor_list)
|
||||
{
|
||||
m_editor_list.removeOne(editor);
|
||||
ui->m_main_vlayout->removeWidget(editor);
|
||||
@@ -64,7 +64,7 @@ void PropertiesEditorDockWidget::clear()
|
||||
*/
|
||||
void PropertiesEditorDockWidget::apply()
|
||||
{
|
||||
foreach(PropertiesEditorWidget *editor, m_editor_list)
|
||||
for (PropertiesEditorWidget *editor: m_editor_list)
|
||||
editor->apply();
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ void PropertiesEditorDockWidget::apply()
|
||||
*/
|
||||
void PropertiesEditorDockWidget::reset()
|
||||
{
|
||||
foreach(PropertiesEditorWidget *editor, m_editor_list)
|
||||
for (PropertiesEditorWidget *editor: m_editor_list)
|
||||
editor->reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user