Refactor: replace qAsConst with std::as_const across TetraIF; reduce compiler deprecation warnings

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-07-14 22:48:58 +02:00
1 parent dfdc6e299d
commit 3904b43cf8
10 files changed
+15 -15

No files matched your search

@@ -231,7 +231,7 @@ int LogViewTetraTelegramsParser::parseStruct(const QVector<QStringRef> &lines, i
if (mi.isEnum && !mi.type.contains(QLatin1String("::")))
{
for (const auto &ei : qAsConst(m_enums))
for (const auto &ei : std::as_const(m_enums))
{
if (ei.type == mi.type)
{
@@ -334,7 +334,7 @@ int LogViewTetraTelegramsParser::parseEnum(const QVector<QStringRef> &lines, int
}
DEBUG_LOG(m_logger) << "Found Enum: " << ei.type;
for (const EnumValue &ev : qAsConst(ei.values))
for (const EnumValue &ev : std::as_const(ei.values))
DEBUG_LOG(m_logger) << "Member[" << i << "]: " << ev.key << " = " << ev.value;
if (ei.type == QLatin1String("TelegramId"))
@@ -391,7 +391,7 @@ int LogViewTetraTelegramsParser::parseConstraint(const QVector<QStringRef> &line
if (enumKey.endsWith(QLatin1Char(';')))
enumKey.chop(1);
bool bFound = false;
for (const auto &v : qAsConst(m_telegramIdEnum.values))
for (const auto &v : std::as_const(m_telegramIdEnum.values))
{
if (v.key == enumKey)
{