Commit 1e0e9e01 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent def8f52c
Pipeline #61386 passed with stage
in 4 minutes and 58 seconds
......@@ -51,7 +51,7 @@ void LoadGroupMenu::init()
for (const QString &dirName : groupPath) {
QDir dir(dirName);
mGroupNames = dir.entryList(QDir::Files | QDir::NoDotAndDotDot);
for (const QString &file : mGroupNames) {
for (const QString &file : qAsConst(mGroupNames)) {
QAction *act = addAction(file);
const QString fullPath = dirName + QLatin1Char('/') + file;
connect(act, &QAction::triggered, this, [this, fullPath] {
......
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