clang-format

This commit is contained in:
John Maguire 2023-07-11 00:07:52 +01:00
parent 5e9354c842
commit 0123fe62b7
2 changed files with 8 additions and 11 deletions

View File

@ -17,13 +17,12 @@
#include "globalsearch.h"
#include <algorithm>
#include <random>
#include <QSettings>
#include <QStringBuilder>
#include <QTimerEvent>
#include <QUrl>
#include <algorithm>
#include <random>
#include "core/application.h"
#include "core/logging.h"

View File

@ -17,12 +17,6 @@
#include "playlist.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <random>
#include <unordered_map>
#include <QApplication>
#include <QBuffer>
#include <QCoreApplication>
@ -35,6 +29,11 @@
#include <QUndoStack>
#include <QtConcurrentRun>
#include <QtDebug>
#include <algorithm>
#include <functional>
#include <memory>
#include <random>
#include <unordered_map>
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
#include <QRandomGenerator>
@ -2107,8 +2106,7 @@ void Playlist::ReshuffleIndices() {
// Shuffle them
QStringList shuffled_album_keys = album_key_set.values();
std::shuffle(shuffled_album_keys.begin(),
shuffled_album_keys.end(),
std::shuffle(shuffled_album_keys.begin(), shuffled_album_keys.end(),
std::mt19937(rd()));
// If the user is currently playing a song, force its album to be first