aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playstate.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-04 21:12:09 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-04 21:12:09 +0000
commit64a0861bc42b2667a562ce8fbf82081282241bbc (patch)
tree49dd06206b2ec9b728cef7168421c8fe54faf321 /src/qmmpui/playstate.cpp
parent245027ffccb6dd722b1c928b0d53a62f095c466e (diff)
downloadqmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.tar.gz
qmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.tar.bz2
qmmp-64a0861bc42b2667a562ce8fbf82081282241bbc.zip
fixed qt 5.13 warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8770 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playstate.cpp')
-rw-r--r--src/qmmpui/playstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmpui/playstate.cpp b/src/qmmpui/playstate.cpp
index 0d6e70758..34f350b7a 100644
--- a/src/qmmpui/playstate.cpp
+++ b/src/qmmpui/playstate.cpp
@@ -97,7 +97,7 @@ void ShufflePlayState::prepare()
}
for (int i = 0; i < m_shuffled_indexes.count(); i++)
- m_shuffled_indexes.swap(i, qrand()%m_shuffled_indexes.size());
+ m_shuffled_indexes.swapItemsAt(i, qrand()%m_shuffled_indexes.size());
m_shuffled_indexes.prepend(m_model->currentIndex());
}