summaryrefslogtreecommitdiff
path: root/quacker/letterbox.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2020-06-17 23:52:03 -0500
committerJohn Fultz <jfultz@wolfram.com>2020-06-17 23:52:03 -0500
commitb7413384aafca679584df1e5e18dd7e6282ff4f3 (patch)
tree65e5e434fc0dcc7e2dc51520a659219a575bbc68 /quacker/letterbox.cpp
parent61aa7d337a045759e06803c89b5f364ca4ed26b1 (diff)
Xcode compiler warnings.
* Replace std::random_shuffle() with std::shuffle(). * Populate switch statements which were checking the Move enums, but not Move::PlaceError. * endl -> Qt::endl for QTextStream usage. * QString::SkipEmptyParts -> Qt::SkipEmptyParts * QLabel::pixmap() now takes Qt::ReturnByValue * Use QElapsedTimer where appropriate.
Diffstat (limited to 'quacker/letterbox.cpp')
-rw-r--r--quacker/letterbox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/quacker/letterbox.cpp b/quacker/letterbox.cpp
index 8edcaa5..aeed7af 100644
--- a/quacker/letterbox.cpp
+++ b/quacker/letterbox.cpp
@@ -358,7 +358,11 @@ ClueResult Letterbox::parseComment(const QString &comment)
if (comment.isEmpty())
return ClueResult();
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
+ QStringList items = comment.split(" ", Qt::SkipEmptyParts);
+#else
QStringList items = comment.split(" ", QString::SkipEmptyParts);
+#endif
ClueResult ret;