diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-10-06 11:42:18 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-10-07 14:37:28 +0200 |
commit | eae06b0ccdf72bc2a09457e588fd42d5ab40dc28 (patch) | |
tree | 0ac857d486688ba2d821a0126cc2c2eba8ceb808 /src/svg/qsvghandler.cpp | |
parent | dd15658245e36c764964397d64120bc26607787a (diff) | |
download | qtsvg-eae06b0ccdf72bc2a09457e588fd42d5ab40dc28.tar.gz |
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: Id6b89c20f706350dbc632e1b48505cafc4cdbafb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/svg/qsvghandler.cpp')
-rw-r--r-- | src/svg/qsvghandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 09da1a3..29ca733 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -3891,7 +3891,7 @@ void QSvgHandler::resolveGradients(QSvgNode *node, int nestedDepth) void QSvgHandler::resolveNodes() { - for (QSvgUse *useNode : qAsConst(m_toBeResolved)) { + for (QSvgUse *useNode : std::as_const(m_toBeResolved)) { const auto parent = useNode->parent(); if (!parent) continue; |