fix: some clazy checks

This commit is contained in:
Gary Wang committed 2021-01-10 14:57:01 +08:00
1 parent 4d8d98b2ff
commit 6d8f353602
6 files changed
+99 -99

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
QStringList urlStrList = parser.positionalArguments();
QList<QUrl> urlList;
for (const QString & str : urlStrList) {
for (const QString & str : qAsConst(urlStrList)) {
QUrl url = QUrl::fromLocalFile(str);
if (url.isValid()) {
urlList.append(url);