Replace manual parsing with QVersionNumber::fromString()
Instead of splitting the version string into tokens separated by dots
(.) and then parsing each token into an int, building a QList from
them with which to eventually construct a QVersionNumber, just use
QVersionNumber::fromString(), which is both simpler and more
efficient.
Amends f467e29f74fd121b62ad66cb70da9a4b7f6e3248.
Gets rid of Q_FOREACH loops that have crept back in after the cmake
port dropped the QT_NO_FOREACH protection originally added in
61342a9e915f77501b2e5ab72fe40bc40818c4f5.
As a drive-by, to maintain line-length limits, port affected lines to
_L1 UDLs.
Change-Id: If22da8eb1a33f1e967ae2f6d152f0b4c401d722d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | d63dd81aa8403bb7164abe505196c806b39ea98c |
| parent | 9b29f8ddf34c9decad70d53ec44078cffb7a82cb |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Fri, 4 Aug 2023 15:03:39 +0200 |
- M src/imports/lottieanimation.cpp
- M tests/auto/bodymovin/shape/ellipse/tst_bmellipse.cpp
- M tests/auto/bodymovin/shape/fill/tst_bmfill.cpp
- M tests/auto/bodymovin/shape/path/tst_bmpath.cpp
- M tests/auto/bodymovin/shape/rect/tst_bmrect.cpp
- M tests/auto/bodymovin/shape/repeater/tst_bmrepeater.cpp
- M tests/auto/bodymovin/shape/repeatertransform/tst_bmrepeatertransform.cpp
- M tests/auto/bodymovin/shape/shapelayer/tst_bmshapelayer.cpp
- M tests/auto/bodymovin/shape/shapetransform/tst_bmshapetransform.cpp
- M tests/auto/bodymovin/shape/stroke/tst_bmstroke.cpp
- M tests/auto/bodymovin/shape/transform/tst_bmbasictransform.cpp
- M tests/auto/bodymovin/shape/trimpath/tst_bmtrimpath.cpp