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: I1992b2cd0624590dacfcf907350ba2ce2f279f05
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commitab666fae82f3c41fdc56220fea6b8bf8b389be9f
parent1a85163e1538e8a8e60c884bb21a5084d6170759
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 6 Oct 2022 12:01:15 +0200