diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-10-06 11:42:43 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-10-06 18:20:23 +0200 |
commit | d6dfdf3ad3f68a97fd4fc2843a5d5fb424193b4b (patch) | |
tree | 2a9f9447f0a904174ead25287b1313fe728257b8 /src/designer/src/designer/qdesigner_actions.cpp | |
parent | c338447261878111df7198fbd96051926464e865 (diff) |
Port from qAsConst() to std::as_const()
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.
Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace.
Task-number: QTBUG-99313
Change-Id: I234704ba429750ddee958a82f6c941d041da0653
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/designer/src/designer/qdesigner_actions.cpp')
-rw-r--r-- | src/designer/src/designer/qdesigner_actions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/designer/qdesigner_actions.cpp b/src/designer/src/designer/qdesigner_actions.cpp index f1f54e461..785729e96 100644 --- a/src/designer/src/designer/qdesigner_actions.cpp +++ b/src/designer/src/designer/qdesigner_actions.cpp @@ -1071,7 +1071,7 @@ void QDesignerActions::backupForms() for (const QString &backupFile : backupFiles) backupDir.remove(backupFile); - for (const QString &tmpName : qAsConst(tmpFiles)) { + for (const QString &tmpName : std::as_const(tmpFiles)) { QString name(tmpName); name.replace(m_backupTmpPath, m_backupPath); QFile tmpFile(tmpName); |