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: I4b4548c9d4a13337731159c1e1184e48bb0a328b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| commit | 3ecd6ad4cd0bcec11e17f69e9e5d25057634b048 |
| parent | 8f8aacdeadea1ddf92923f6183c4c67925a25db2 |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Fri, 7 Oct 2022 14:37:04 +0200 |
- M examples/statemachine/animation/stickman/animation.cpp
- M examples/statemachine/animation/sub-attaq/animationmanager.cpp
- M examples/statemachine/animation/sub-attaq/graphicsscene.cpp
- M src/scxml/qscxmlcompiler.cpp
- M src/scxml/qscxmlcompiler_p.h
- M src/scxml/qscxmltabledata.cpp
- M src/scxmlqml/eventconnection.cpp
- M src/statemachine/qstatemachine.cpp
- M src/statemachineqml/childrenprivate_p.h
- M tests/auto/compiled/tst_compiled.cpp
- M tools/qscxmlc/generator.cpp
- M tools/qscxmlc/qscxmlc.cpp
- M tools/qscxmlc/scxmlcppdumper.cpp