summaryrefslogtreecommitdiffstats
path: root/src/interfaceframework/qifservicemanager.cpp
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/qifservicemanager.cpp
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/qifservicemanager.cpp')
-rw-r--r--src/interfaceframework/qifservicemanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaceframework/qifservicemanager.cpp b/src/interfaceframework/qifservicemanager.cpp
index 8bb6868a..5374f9a8 100644
--- a/src/interfaceframework/qifservicemanager.cpp
+++ b/src/interfaceframework/qifservicemanager.cpp
@@ -132,10 +132,10 @@ QList<QIfServiceObject *> QIfServiceManagerPrivate::findServiceByInterface(const
// The wildcards in the disambiguation list are checked in order
// Once a wildcard founds matches those are returned.
// In case of no match the next wildcard is used.
- for (const QString &wildCard : qAsConst(preferredBackends)) {
+ for (const QString &wildCard : std::as_const(preferredBackends)) {
qCDebug(qLcIfServiceManagement) << "Dissambiguate found backends with wildcard:" << wildCard;
const auto regexp = QRegularExpression(QRegularExpression::wildcardToRegularExpression(wildCard));
- for (Backend *backend : qAsConst(foundBackends)) {
+ for (Backend *backend : std::as_const(foundBackends)) {
const auto fileInfo = QFileInfo(backend->metaData[fileNameLiteral].toString());
QIfServiceObject *serviceObject = nullptr;
QString identifier = fileInfo.fileName();
@@ -160,7 +160,7 @@ QList<QIfServiceObject *> QIfServiceManagerPrivate::findServiceByInterface(const
if (list.isEmpty()) {
qCDebug(qLcIfServiceManagement) << "Didn't find any preferred backends. Returning all found.";
- for (Backend *backend : qAsConst(foundBackends)) {
+ for (Backend *backend : std::as_const(foundBackends)) {
auto serviceObject = createServiceObject(backend);
if (serviceObject)
list.append(serviceObject);
@@ -308,7 +308,7 @@ void QIfServiceManagerPrivate::unloadAllBackends()
Q_Q(QIfServiceManager);
q->beginResetModel();
- for (Backend* backend : qAsConst(m_backends)) {
+ for (Backend* backend : std::as_const(m_backends)) {
if (backend->proxyServiceObject) {
auto configurationId = backend->proxyServiceObject->configurationId();
QIfConfigurationManager::instance()->removeServiceObject(configurationId, backend->proxyServiceObject);