From 7ce566729ba0a12c7f835b3745679e6b36c593bb Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 9 Jun 2022 19:59:11 +0200 Subject: [PATCH] Avoid use of QString::front() as it is only available in Qt 5.10 and newer --- renamingutility/tageditorobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renamingutility/tageditorobject.cpp b/renamingutility/tageditorobject.cpp index 96a880c..8d668eb 100644 --- a/renamingutility/tageditorobject.cpp +++ b/renamingutility/tageditorobject.cpp @@ -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) {