Replace QVector with QList

This commit is contained in:
Jonas Kvinge
2024-09-24 20:47:43 +02:00
parent 2e6408a4f7
commit 4d4dd6b249
15 changed files with 40 additions and 45 deletions

View File

@@ -83,7 +83,7 @@
#endif
#include <QtGlobal>
#include <QVector>
#include <QList>
#include <QByteArray>
#include <QString>
#include <QStringList>
@@ -1145,7 +1145,7 @@ void TagReaderTagLib::SetTextFrame(const char *id, const QString &value, TagLib:
void TagReaderTagLib::SetTextFrame(const char *id, const std::string &value, TagLib::ID3v2::Tag *tag) const {
const TagLib::ByteVector id_vector(id);
QVector<TagLib::ByteVector> frames_buffer;
QList<TagLib::ByteVector> frames_buffer;
// Store and clear existing frames
while (tag->frameListMap().contains(id_vector) && tag->frameListMap()[id_vector].size() != 0) {
@@ -1200,7 +1200,7 @@ void TagReaderTagLib::SetUserTextFrame(const std::string &description, const std
void TagReaderTagLib::SetUnsyncLyricsFrame(const std::string &value, TagLib::ID3v2::Tag *tag) const {
TagLib::ByteVector id_vector(kID3v2_UnsychronizedLyrics);
QVector<TagLib::ByteVector> frames_buffer;
QList<TagLib::ByteVector> frames_buffer;
// Store and clear existing frames
while (tag->frameListMap().contains(id_vector) && tag->frameListMap()[id_vector].size() != 0) {