From 308bed0da7e877b86dc4236022acc5416d5645d7 Mon Sep 17 00:00:00 2001 From: Stephan Beyer Date: Tue, 7 Jul 2020 09:43:22 +0200 Subject: [PATCH] Use braced initializer list for returns in Systray::taskbarGeometry() Signed-off-by: Stephan Beyer --- src/gui/systray.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 15f9d668e..b2462f6c7 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -264,14 +264,14 @@ QRect Systray::taskbarGeometry() const #elif defined(Q_OS_MACOS) // Finder bar is always 22px height on macOS (when treating as effective pixels) auto screenWidth = currentScreenRect().width(); - return QRect(0, 0, screenWidth, 22); + return {0, 0, screenWidth, 22}; #else if (taskbarOrientation() == TaskBarPosition::Bottom || taskbarOrientation() == TaskBarPosition::Top) { auto screenWidth = currentScreenRect().width(); - return QRect(0, 0, screenWidth, 32); + return {0, 0, screenWidth, 32}; } else { auto screenHeight = currentScreenRect().height(); - return QRect(0, 0, 32, screenHeight); + return {0, 0, 32, screenHeight}; } #endif } -- 2.30.2