Fix clazy inefficient-qlist-soft warning

This commit is contained in:
Elvis Angelaccio 2019-11-09 18:57:13 +01:00
parent 31bc909c3b
commit b2d4e3322a

View file

@ -57,7 +57,7 @@ struct UncompressCommand
};
void runUncompress(const QString &inputPath, const QString &outputPath) {
QList<QPair<QStringList, UncompressCommand>> mimeTypeToCommand;
QVector<QPair<QStringList, UncompressCommand>> mimeTypeToCommand;
mimeTypeToCommand.append({QStringList{"application/x-tar", "application/tar", "application/x-gtar",
"multipart/x-tar"},
UncompressCommand{"tar", QStringList() << "-xf", QStringList() << "-C"}});