mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-01 09:04:13 +02:00
edz: fix missing-field-initializer warning in EdzElementBuilder
EdzPin gained a third field (group) but the fallback initializer at line 70 still listed only two fields, triggering -Wmissing-field-initializers. Added the explicit QString() for group. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ QDomDocument EdzElementBuilder::build(const EdzPart &part)
|
|||||||
{
|
{
|
||||||
QList<EdzPin> pins = part.pins();
|
QList<EdzPin> pins = part.pins();
|
||||||
if (pins.isEmpty()) {
|
if (pins.isEmpty()) {
|
||||||
pins.append(EdzPin{QStringLiteral("1"), QString()});
|
pins.append(EdzPin{QStringLiteral("1"), QString(), QString()});
|
||||||
}
|
}
|
||||||
const int n = pins.size();
|
const int n = pins.size();
|
||||||
const int pitch = 10;
|
const int pitch = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user