Avoid use of QString::front() as it is only available in Qt 5.10 and newer

This commit is contained in:
Martchus 2022-06-09 19:59:11 +02:00
parent 89bc4535cf
commit 7ce566729b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ TAGEDITOR_JS_VALUE &operator<<(TAGEDITOR_JS_VALUE &tagObject, const Tag &tag)
for (const auto &mapping : Cli::FieldMapping::mapping()) {
const auto fieldName = [&] {
auto v = mapping.knownField == KnownField::PartNumber ? QStringLiteral("partNumber") : QString::fromUtf8(mapping.knownDenotation);
v.front() = v.front().toLower();
v[0] = v[0].toLower();
return v;
}();
switch (mapping.knownField) {