Change QList<QString> to QStringList

This commit is contained in:
Jonas Kvinge 2024-04-23 16:51:42 +02:00
parent 398db964b8
commit 7aefe3d71b
5 changed files with 5 additions and 5 deletions

View File

@ -1845,7 +1845,7 @@ void CollectionBackend::ClearAlbumArt(const QString &effective_albumartist, cons
}
void CollectionBackend::ForceCompilation(const QString &album, const QList<QString> &artists, const bool on) {
void CollectionBackend::ForceCompilation(const QString &album, const QStringList &artists, const bool on) {
QMutexLocker l(db_->Mutex());
QSqlDatabase db(db_->Connect());

View File

@ -250,7 +250,7 @@ class CollectionBackend : public CollectionBackendInterface {
void UpdateManualAlbumArt(const QString &effective_albumartist, const QString &album, const QUrl &art_manual);
void UnsetAlbumArt(const QString &effective_albumartist, const QString &album);
void ClearAlbumArt(const QString &effective_albumartist, const QString &album, const bool art_unset);
void ForceCompilation(const QString &album, const QList<QString> &artists, const bool on);
void ForceCompilation(const QString &album, const QStringList &artists, const bool on);
void IncrementPlayCount(const int id);
void IncrementSkipCount(const int id, const float progress);
void ResetPlayStatistics(const int id, const bool save_tags = false);

View File

@ -203,7 +203,7 @@ void MoodbarLoader::RequestFinished(MoodbarPipeline *request, const QUrl &url) {
// Save the data alongside the original as well if we're configured to.
if (save_) {
QList<QString> mood_filenames = MoodFilenames(url.toLocalFile());
QStringList mood_filenames = MoodFilenames(url.toLocalFile());
const QString mood_filename(mood_filenames[0]);
QFile mood_file(mood_filename);
if (mood_file.open(QIODevice::WriteOnly)) {

View File

@ -181,7 +181,7 @@ void AcoustidClient::RequestFinished(QNetworkReply *reply, const int request_id)
std::stable_sort(id_source_list.begin(), id_source_list.end());
QList<QString> id_list;
QStringList id_list;
id_list.reserve(id_source_list.count());
for (const IdSource &is : id_source_list) {
id_list << is.id_;

View File

@ -94,7 +94,7 @@ MimeData *FileViewList::MimeDataFromSelection() const {
MimeData *mimedata = new MimeData;
mimedata->setUrls(UrlListFromSelection());
QList<QString> filenames = FilenamesFromSelection();
const QStringList filenames = FilenamesFromSelection();
// if just one folder selected - use its path as the new playlist's name
if (filenames.size() == 1 && QFileInfo(filenames.first()).isDir()) {