summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-11-11 16:26:04 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-11-15 14:26:32 +0100
commit6225f1760a1d4392d31ee3e529c76beb41fcf937 (patch)
treec768464debe64787b9942f2b1eb74dc0732ae36d
parentdb652d8fc80b4bccd057cda6f9489607e9057582 (diff)
downloadqtimageformats-6225f1760a1d4392d31ee3e529c76beb41fcf937.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. This is a 6.4 re-run of the script we ran in dev, in order to avoid conflicts between the branches when cherry-picking. Change-Id: If8c7ce2660b071b4c6b6bd361e7f25fa51553a63 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--tests/auto/tiff/tst_qtiff.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp
index 05ebae5..030e8ae 100644
--- a/tests/auto/tiff/tst_qtiff.cpp
+++ b/tests/auto/tiff/tst_qtiff.cpp
@@ -495,7 +495,7 @@ void tst_qtiff::supportsOption()
allOptions.remove(QImageIOHandler::ImageOption(options.at(i)));
}
- for (QImageIOHandler::ImageOption option : qAsConst(allOptions))
+ for (QImageIOHandler::ImageOption option : std::as_const(allOptions))
QVERIFY(!writer.supportsOption(option));
}