From: Stephan Beyer Date: Tue, 7 Jul 2020 07:43:22 +0000 (+0200) Subject: Use braced initializer list for returns in Systray::taskbarGeometry() X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~95 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=308bed0da7e877b86dc4236022acc5416d5645d7;p=nextcloud-desktop.git Use braced initializer list for returns in Systray::taskbarGeometry() Signed-off-by: Stephan Beyer --- 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 }