Commit f8181035 authored by Johnny Jazeix's avatar Johnny Jazeix

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

parent b8165646
......@@ -236,7 +236,7 @@ ActionReply BacklightHelper::setbrightness(const QVariantMap &args)
int actual_level = -1;
int d1 = 101;
// Search for the nearest level.
Q_FOREACH (int level, m_sysctlBrightnessLevels) {
for (int level : m_sysctlBrightnessLevels) {
int d2 = qAbs(level - actual_brightness);
* The list is sorted, so we break when it starts diverging. There may be repeated values,
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