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: I4013adde0330a082602f0b890e050f45cfef181f
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | 018a82061d58a3a7107955f2d2dee6162b50de1b |
| parent | 9b4cfaa000b5859addd63ca878e905802cc11238 |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Fri, 7 Oct 2022 17:16:49 +0200 |