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: Ie1515f334c831500607e24f9c7103f12e4ba98b8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | b518357730b4f4b5c5e9f49daa6c4cfe72dd482c |
| parent | 2431bba5bbcb8026dba8cefd401a5f6076c12ae8 |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Thu, 6 Oct 2022 18:06:36 +0200 |