Commit b8165646 authored by Johnny Jazeix's avatar Johnny Jazeix

replace Q_FOREACH with for-range loop, should fix freeBSD compilation

parent 841fc545
......@@ -135,7 +135,7 @@ void BacklightHelper::initUsingSysctl()
*/
QStringList types;
types << QStringLiteral("lcd") << QStringLiteral("out") << QStringLiteral("crt") << QStringLiteral("tv") << QStringLiteral("ext");
Q_FOREACH (const QString &type, types) {
for (const QString & type : types) {
for (int i = 0; m_sysctlDevice.isEmpty(); i++) {
QString device = QStringLiteral("%1%2").arg(type, QString::number(i));
// We don't care about the value, we only want the sysctl to be there.
......
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