Fix various clazy warnings
This commit is contained in:
@@ -68,7 +68,7 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
|
||||
// read the first line already
|
||||
QString line = text_stream.readLine();
|
||||
|
||||
QList<CueEntry> entries;
|
||||
QVector<CueEntry> entries;
|
||||
int files = 0;
|
||||
|
||||
// -- whole file
|
||||
|
||||
@@ -138,10 +138,7 @@ void M3UParser::Save(const SongList &songs, QIODevice *device, const QDir &dir,
|
||||
continue;
|
||||
}
|
||||
if (writeMetadata) {
|
||||
QString meta = QString("#EXTINF:%1,%2 - %3\n")
|
||||
.arg(song.length_nanosec() / kNsecPerSec)
|
||||
.arg(song.artist())
|
||||
.arg(song.title());
|
||||
QString meta = QString("#EXTINF:%1,%2 - %3\n").arg(song.length_nanosec() / kNsecPerSec).arg(song.artist(), song.title());
|
||||
device->write(meta.toUtf8());
|
||||
}
|
||||
device->write(URLOrFilename(song.url(), dir, path_type).toUtf8());
|
||||
|
||||
@@ -112,7 +112,8 @@ QString PlaylistParser::FilterForParser(const ParserBase *parser, QStringList *a
|
||||
}
|
||||
|
||||
QString PlaylistParser::default_extension() const {
|
||||
return default_parser_->file_extensions()[0];
|
||||
QStringList file_extensions = default_parser_->file_extensions();
|
||||
return file_extensions[0];
|
||||
}
|
||||
|
||||
QString PlaylistParser::default_filter() const {
|
||||
|
||||
Reference in New Issue
Block a user