diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-07-04 23:43:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 23:43:39 -0700 |
commit | a028894855f29c49d4bf8b0f745c66e1ea7dd4c6 (patch) | |
tree | d14a80143654aecc20cce813975af6fff40e4f25 /tests | |
parent | 183ed7b90bbe015b09f545087387e1345ccaf927 (diff) | |
download | PrismLauncher-a028894855f29c49d4bf8b0f745c66e1ea7dd4c6.tar.gz PrismLauncher-a028894855f29c49d4bf8b0f745c66e1ea7dd4c6.tar.bz2 PrismLauncher-a028894855f29c49d4bf8b0f745c66e1ea7dd4c6.zip |
Apply suggestions from code review
Co-authored-by: seth <getchoo@tuta.io>
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Version_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Version_test.cpp b/tests/Version_test.cpp index 0f8c1652..f5488cbc 100644 --- a/tests/Version_test.cpp +++ b/tests/Version_test.cpp @@ -145,10 +145,10 @@ class VersionTest : public QObject { void test_flexVerTestVector() { - QString first = *static_cast<QString*>(QTest ::qData("first", ::qMetaTypeId<typename std ::remove_cv<QString>::type>())); - QString second = *static_cast<QString*>(QTest ::qData("second", ::qMetaTypeId<typename std ::remove_cv<QString>::type>())); - bool lessThan = *static_cast<bool*>(QTest ::qData("lessThan", ::qMetaTypeId<typename std ::remove_cv<bool>::type>())); - bool equal = *static_cast<bool*>(QTest ::qData("equal", ::qMetaTypeId<typename std ::remove_cv<bool>::type>())); + QFETCH(QString, first); + QFETCH(QString, second); + QFETCH(bool, lessThan); + QFETCH(bool, equal); const auto v1 = Version(first); const auto v2 = Version(second); |