refactor: Resolve some clang warnings (#915)

This commit is contained in:
Murat Seker
2020-08-02 22:35:09 +02:00
committed by GitHub
parent 031b9a6b7c
commit d183c630c8
18 changed files with 36 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ bool ColorsOption::validate(Parser & parser, QString & value)
QRegularExpressionMatch match = hexRe.match(value);
if(match.hasMatch())
{
for(const QString m : match.capturedTexts())
for(const QString & m : match.capturedTexts())
{
_colors.push_back(QColor(QString("#%1").arg(m)));
}