mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Revert "Try Clazy fix-its"
Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
@@ -130,8 +130,7 @@ ElementPictureFactory::primitives ElementPictureFactory::getPrimitives(
|
||||
|
||||
ElementPictureFactory::~ElementPictureFactory()
|
||||
{
|
||||
for (const primitives& p : m_primitives_H.values())
|
||||
{
|
||||
for (primitives p : m_primitives_H.values()) {
|
||||
qDeleteAll(p.m_texts);
|
||||
}
|
||||
}
|
||||
@@ -581,7 +580,7 @@ void ElementPictureFactory::setPainterStyle(const QDomElement &dom, QPainter &pa
|
||||
<< rx.patternErrorOffset();
|
||||
return;
|
||||
}
|
||||
for (const auto& style : styles)
|
||||
for (auto style : styles)
|
||||
{
|
||||
QRegularExpressionMatch match = rx.match(style);
|
||||
if (!match.hasMatch()) {
|
||||
|
||||
Reference in New Issue
Block a user