diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-10-06 11:33:26 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-10-06 18:06:26 +0200 |
commit | b3cbf8d925aa2648ccfe8537f29a42c716ee0bce (patch) | |
tree | 94420f6cdc74f72204566b118882ad78733362ed /tests | |
parent | 196c460d35bfc6c564f2c6a244a73db0c3c82010 (diff) | |
download | qtimageformats-b3cbf8d925aa2648ccfe8537f29a42c716ee0bce.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: Ie5b276174d8446a6ddbca11a6a8e3e07d3bca675
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/tiff/tst_qtiff.cpp | 2 |
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)); } |