From 4d549d76be6eb3caf92bb24ee46d42fb68b0f1a2 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 9 Nov 2020 18:24:46 +0100 Subject: [PATCH] startupfeedback: Don't use a lambda unnecessarily --- effects/startupfeedback/startupfeedback.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index d747076e4e..a202771859 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -277,13 +277,11 @@ void StartupFeedbackEffect::start(const QString& icon) if (!m_active) effects->startMousePolling(); m_active = true; - auto readCursorSize = []() -> int { - // read details about the mouse-cursor theme define per default - KConfigGroup mousecfg(effects->inputConfig(), "Mouse"); - int cursorSize = mousecfg.readEntry("cursorSize", 24); - return cursorSize; - }; - m_cursorSize = readCursorSize(); + + // read details about the mouse-cursor theme define per default + KConfigGroup mousecfg(effects->inputConfig(), "Mouse"); + m_cursorSize = mousecfg.readEntry("cursorSize", 24); + int iconSize = m_cursorSize / 1.5; if (!iconSize) { iconSize = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);