mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Apply clang-tidy's modernize-use-auto
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5449 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -119,7 +119,7 @@ void ElementTextsMover::endMovement()
|
||||
|
||||
for (QGraphicsItem *qgi : m_items_hash.keys())
|
||||
{
|
||||
if(QObject *object = dynamic_cast<QObject *>(qgi))
|
||||
if(auto *object = dynamic_cast<QObject *>(qgi))
|
||||
{
|
||||
QPropertyUndoCommand *child_undo = new QPropertyUndoCommand(object, "pos", m_items_hash.value(qgi), qgi->pos(), undo);
|
||||
child_undo->enableAnimation();
|
||||
|
||||
Reference in New Issue
Block a user