tracepointgen: Fix double comma in enums

Remove commas at the end of the lines.

Pick-to: 6.5
Change-Id: Idf731ac5de64787276c1fdf798eb429b8f73213b
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
This commit is contained in:
Antti Määttä 2023-03-31 09:24:30 +03:00
parent f1257b15cb
commit 38c8eb8564

View File

@ -353,6 +353,10 @@ static QList<EnumNameValue> enumsToValues(const QStringList &values)
}
}
} else {
if (value.endsWith(QLatin1Char(',')))
r.name = value.left(value.length() - 1);
else
r.name = value;
r.value = ++cur;
ret << r;
}