Revert "Try Clazy fix-its"

Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
Laurent Trinques
2025-02-14 16:17:58 +01:00
parent dba7caed30
commit 43f0107eb1
88 changed files with 409 additions and 512 deletions

View File

@@ -61,8 +61,7 @@ PastePartsCommand::~PastePartsCommand()
void PastePartsCommand::undo()
{
m_scene->blockSignals(true);
for (auto qgi : std::as_const(m_pasted_content))
{
for (auto qgi : m_pasted_content) {
m_scene->removeItem(qgi);
}
m_scene->blockSignals(false);
@@ -85,8 +84,7 @@ void PastePartsCommand::redo()
m_first_redo = false;
} else {
m_scene->blockSignals(true);
for (auto qgi : std::as_const(m_pasted_content))
{
for (auto qgi : m_pasted_content) {
m_scene->addItem(qgi);
}
m_scene->blockSignals(false);