mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Revert "Try Clazy fix-its"
Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
@@ -521,7 +521,7 @@ ElementEditionCommand(QObject::tr("Pivoter la selection", "undo caption"), scene
|
||||
*/
|
||||
void RotateElementsCommand::undo()
|
||||
{
|
||||
for (QGraphicsItem* item : std::as_const(m_items))
|
||||
for (QGraphicsItem *item : m_items)
|
||||
{
|
||||
if (item->type() == PartTerminal::Type) {
|
||||
PartTerminal* term = qgraphicsitem_cast<PartTerminal*>(item);
|
||||
@@ -549,7 +549,7 @@ void RotateElementsCommand::undo()
|
||||
*/
|
||||
void RotateElementsCommand::redo()
|
||||
{
|
||||
for (QGraphicsItem* item : std::as_const(m_items))
|
||||
for (QGraphicsItem *item : m_items)
|
||||
{
|
||||
if (item->type() == PartTerminal::Type) {
|
||||
PartTerminal* term = qgraphicsitem_cast<PartTerminal*>(item);
|
||||
|
||||
Reference in New Issue
Block a user