summaryrefslogtreecommitdiffstats
path: root/src/monitor-lib/systemreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor-lib/systemreader.cpp')
-rw-r--r--src/monitor-lib/systemreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor-lib/systemreader.cpp b/src/monitor-lib/systemreader.cpp
index 23f2d9e7..6db7891b 100644
--- a/src/monitor-lib/systemreader.cpp
+++ b/src/monitor-lib/systemreader.cpp
@@ -446,7 +446,7 @@ bool MemoryThreshold::setEnabled(bool enabled, const QString &groupPath, MemoryR
if (m_controlFd >= 0) {
bool registerOk = true;
- for (qreal percent : qAsConst(m_thresholds)) {
+ for (qreal percent : std::as_const(m_thresholds)) {
quint64 mem = quint64(limit * percent) / 100;
registerOk = registerOk && (dprintf(m_controlFd, "%d %d %llu", m_eventFd, m_usageFd, mem) > 0);
}