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: I81d46e084478c2d683a3939cb5b6255697ee1f82
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit2b1e720b4146a0953764265b9e426db84babb227
parent5242da85dd2b59c2eb408db6713305bf8461a428
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 7 Oct 2022 17:18:13 +0200