From b7413384aafca679584df1e5e18dd7e6282ff4f3 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Wed, 17 Jun 2020 23:52:03 -0500 Subject: 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. --- quackleio/gcgio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'quackleio/gcgio.h') diff --git a/quackleio/gcgio.h b/quackleio/gcgio.h index 3442056..2ae76f8 100644 --- a/quackleio/gcgio.h +++ b/quackleio/gcgio.h @@ -40,6 +40,11 @@ private: int readSignedInt(const QString &intString) const; }; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) && !defined(m_endl) +# define m_endl Qt::endl +#elif !defined(m_endl) +# define m_endl endl +#endif } #endif -- cgit v1.2.3