Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Beyer <s-beyer@gmx.net>2020-07-07 10:43:22 +0300
committerKevin Ottens <ervin@ipsquad.net>2020-07-08 15:08:41 +0300
commit308bed0da7e877b86dc4236022acc5416d5645d7 (patch)
tree292ea6406d863a610b296cfca3ccf808490a18a2 /src/gui/systray.cpp
parenta87b6157ee42be528c4c2b94337833e0a5ad1aa7 (diff)
Use braced initializer list for returns in Systray::taskbarGeometry()
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Diffstat (limited to 'src/gui/systray.cpp')
-rw-r--r--src/gui/systray.cpp6
1 files 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
}