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. --- rack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rack.cpp') diff --git a/rack.cpp b/rack.cpp index e34c4b1..0a878de 100644 --- a/rack.cpp +++ b/rack.cpp @@ -92,7 +92,7 @@ bool Rack::contains(const LetterString &used) const void Rack::shuffle() { - random_shuffle(m_tiles.begin(), m_tiles.end()); + DataManager::self()->shuffle(m_tiles); } int Rack::score() const -- cgit v1.2.3