Commit 493d4708 authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent c2dc0ba0
......@@ -425,7 +425,7 @@ void TopLevel::filePicture()
const QMimeDatabase mimedb;
const QList<QByteArray> imageWriterMimetypes = QImageWriter::supportedMimeTypes();
QStringList patterns;
for(auto mimeName : imageWriterMimetypes)
for(const auto &mimeName : imageWriterMimetypes)
{
const QMimeType mime = mimedb.mimeTypeForName(mimeName);
if (mime.isValid())
......@@ -433,7 +433,7 @@ void TopLevel::filePicture()
QStringList suffixes;
for(const QString &suffix : mime.suffixes())
{
suffixes << QString("*.%1").arg(suffix);
suffixes << QStringLiteral("*.%1").arg(suffix);
}
// Favor png
......@@ -448,7 +448,7 @@ void TopLevel::filePicture()
}
}
}
const QUrl url = QFileDialog::getSaveFileUrl( this, QString(), QUrl(), patterns.join(";;") );
const QUrl url = QFileDialog::getSaveFileUrl( this, QString(), QUrl(), patterns.join(QStringLiteral(";;")) );
if( url.isEmpty() )
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment