From 28b6547da6d3c421b7eea1dcf6519c0a36cf1982 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 15 Sep 2023 09:46:14 +0200 Subject: [PATCH] save --- .../gui/notifications/toastnotificationsmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librssguard/gui/notifications/toastnotificationsmanager.cpp b/src/librssguard/gui/notifications/toastnotificationsmanager.cpp index 3e1111a72..b0599d234 100644 --- a/src/librssguard/gui/notifications/toastnotificationsmanager.cpp +++ b/src/librssguard/gui/notifications/toastnotificationsmanager.cpp @@ -151,7 +151,7 @@ void ToastNotificationsManager::makeSpaceForNotification(int height_to_make_spac switch (m_position) { case ToastNotificationsManager::TopLeft: case ToastNotificationsManager::TopRight: { - auto shift_down = reverse ? [](int x, int y) {return x - y;} : [](int x, int y) {return x + y;}; + std::function shift_down = reverse ? [](int x, int y) {return x - y;} : [](int x, int y) {return x + y;}; // Move it all down. notif->move(notif->pos().x(), shift_down(notif->pos().y(), (height_to_make_space + NOTIFICATIONS_MARGIN))); @@ -160,7 +160,7 @@ void ToastNotificationsManager::makeSpaceForNotification(int height_to_make_spac case ToastNotificationsManager::BottomLeft: case ToastNotificationsManager::BottomRight: { - auto shift_up = reverse ? [](int x, int y) {return x + y;} : [](int x, int y) {return x - y;}; + std::function shift_up = reverse ? [](int x, int y) {return x + y;} : [](int x, int y) {return x - y;}; // Move it all up. notif->move(notif->pos().x(), shift_up(notif->pos().y(), height_to_make_space + NOTIFICATIONS_MARGIN));