summaryrefslogtreecommitdiffstats
path: root/src/interfaceframework/queryparser
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2023-01-10 11:09:15 +0100
committerDominik Holland <dominik.holland@qt.io>2023-01-11 15:11:19 +0100
commit95d1fbe9b7194ce90918bdeca2bff0ddbeed0e6e (patch)
tree3fa9a85656cec48b10cb438355c01cb3e4766bea /src/interfaceframework/queryparser
parent475d427766e7fa41b0dd198e3c3a5ccad632e72b (diff)
Use std::as_const instead of qAsConst
Pick-to: 6.5 Change-Id: I2606d1168dbd0061118e5e05fb44d22dcfac248c Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/queryparser')
-rw-r--r--src/interfaceframework/queryparser/qifqueryparser.g2
-rw-r--r--src/interfaceframework/queryparser/qifqueryparser_p.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaceframework/queryparser/qifqueryparser.g b/src/interfaceframework/queryparser/qifqueryparser.g
index 96bda33c..a9bec237 100644
--- a/src/interfaceframework/queryparser/qifqueryparser.g
+++ b/src/interfaceframework/queryparser/qifqueryparser.g
@@ -286,7 +286,7 @@ bool QIfQueryParser::checkIdentifier(const QString &identifer)
{
if (!m_identifierList.isEmpty() && !m_identifierList.contains(identifer)) {
QString errorMessage = QString(QLatin1String("Got %1 but expected on of the following identifiers:\n")).arg(identifer);
- for (const QString &ident : qAsConst(m_identifierList))
+ for (const QString &ident : std::as_const(m_identifierList))
errorMessage.append(QString(QLatin1String(" %1\n")).arg(ident));
setErrorString(errorMessage);
diff --git a/src/interfaceframework/queryparser/qifqueryparser_p.h b/src/interfaceframework/queryparser/qifqueryparser_p.h
index 686e663e..180e9e1e 100644
--- a/src/interfaceframework/queryparser/qifqueryparser_p.h
+++ b/src/interfaceframework/queryparser/qifqueryparser_p.h
@@ -416,7 +416,7 @@ bool QIfQueryParser::checkIdentifier(const QString &identifer)
{
if (!m_identifierList.isEmpty() && !m_identifierList.contains(identifer)) {
QString errorMessage = QString(QLatin1String("Got %1 but expected on of the following identifiers:\n")).arg(identifer);
- for (const QString &ident : qAsConst(m_identifierList))
+ for (const QString &ident : std::as_const(m_identifierList))
errorMessage.append(QString(QLatin1String(" %1\n")).arg(ident));
setErrorString(errorMessage);