mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10: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:
@@ -122,7 +122,7 @@ void ReportElement::unlinkAllElements()
|
||||
|
||||
QList <Element *> tmp_elmt = connected_elements;
|
||||
|
||||
foreach(Element *elmt, connected_elements)
|
||||
for (Element *elmt: connected_elements)
|
||||
{
|
||||
disconnect(elmt, SIGNAL(xChanged()), this, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(yChanged()), this, SLOT(updateLabel()));
|
||||
@@ -139,7 +139,7 @@ void ReportElement::unlinkAllElements()
|
||||
}
|
||||
updateLabel();
|
||||
|
||||
foreach(Element *elmt, tmp_elmt)
|
||||
for (Element *elmt: tmp_elmt)
|
||||
{
|
||||
elmt -> setHighlighted(false);
|
||||
elmt -> unlinkAllElements();
|
||||
|
||||
Reference in New Issue
Block a user