mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
Apply clang-tidy's performance-unnecessary-value-param, performance-for-
range-copy git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5448 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -880,7 +880,7 @@ bool QetShapeItem::fromXml(const QDomElement &e)
|
||||
}
|
||||
}
|
||||
else {
|
||||
for(QDomElement de : QET::findInDomElement(e, "points", "point")) {
|
||||
for(const QDomElement& de : QET::findInDomElement(e, "points", "point")) {
|
||||
m_polygon << QPointF(de.attribute("x", nullptr).toDouble(), de.attribute("y", nullptr).toDouble());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user