fix(clang-tidy): performance-for-range-copy (#6275)
This commit is contained in:
@@ -110,7 +110,7 @@ CommandPage::CommandPage()
|
||||
QObject::connect(button, &QPushButton::clicked, this, [] {
|
||||
QFile c1settings(c1settingsPath());
|
||||
c1settings.open(QIODevice::ReadOnly);
|
||||
for (auto line :
|
||||
for (const auto &line :
|
||||
QString(c1settings.readAll())
|
||||
.split(QRegularExpression("[\r\n]"), Qt::SkipEmptyParts))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user