mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-23 02:09:58 +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:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <QPainter>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <utility>
|
||||
|
||||
bool sorting(QGraphicsItem *qgia, QGraphicsItem *qgib)
|
||||
{
|
||||
@@ -253,7 +254,7 @@ void ElementTextItemGroup::setVerticalAdjustment(int v)
|
||||
*/
|
||||
void ElementTextItemGroup::setName(QString name)
|
||||
{
|
||||
m_name = name;
|
||||
m_name = std::move(name);
|
||||
emit nameChanged(m_name);
|
||||
}
|
||||
|
||||
@@ -412,7 +413,7 @@ void ElementTextItemGroup::fromXml(QDomElement &dom_element)
|
||||
if(parentElement())
|
||||
{
|
||||
m_block_alignment_update = true;
|
||||
for(QDomElement text : QET::findInDomElement(dom_element, "texts", "text"))
|
||||
for(const QDomElement& text : QET::findInDomElement(dom_element, "texts", "text"))
|
||||
{
|
||||
DynamicElementTextItem *deti = nullptr;
|
||||
QUuid uuid(text.attribute("uuid"));
|
||||
|
||||
Reference in New Issue
Block a user