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: Ic16fb6a4366062e341ae1f439fe442aec2795a17
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit6c87f1194bdfbf4a4bd4cde5d1528fab2b882848
parent953c5833acb7c78afd39d287e27ca580ea4232ba
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 6 Oct 2022 18:20:07 +0200