mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
@@ -22,7 +22,7 @@ bool ColorsOption::validate(Parser & parser, QString & value)
|
||||
QRegularExpressionMatch match = hexRe.match(value);
|
||||
if(match.hasMatch())
|
||||
{
|
||||
Q_FOREACH(const QString m, match.capturedTexts())
|
||||
for(const QString m : match.capturedTexts())
|
||||
{
|
||||
_colors.push_back(QColor(QString("#%1").arg(m)));
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ bool Parser::parse(const QStringList &arguments)
|
||||
return false;
|
||||
}
|
||||
|
||||
Q_FOREACH(Option * option, _options)
|
||||
for(Option * option : _options)
|
||||
{
|
||||
QString value = this->value(*option);
|
||||
if (!option->validate(*this, value)) {
|
||||
|
Reference in New Issue
Block a user