tracepointgen: Fix double comma in enums

Remove commas at the end of the lines.

Change-Id: Idf731ac5de64787276c1fdf798eb429b8f73213b
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
(cherry picked from commit 38c8eb8564495b0fe345eaca700966889f1f8aa3)
This commit is contained in:
Antti Määttä 2023-03-31 09:24:30 +03:00
parent fd83b738d7
commit cbfbf0d71f

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;
}