From 36f8b27a0d36ab7fba37fbbe9dde801841ebad76 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Thu, 10 Oct 2024 09:01:48 +0100 Subject: [PATCH] Switching to static_cast --- plugins/sendnotifications/windowsnotificationslistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sendnotifications/windowsnotificationslistener.cpp b/plugins/sendnotifications/windowsnotificationslistener.cpp index bca593518..797fceb63 100644 --- a/plugins/sendnotifications/windowsnotificationslistener.cpp +++ b/plugins/sendnotifications/windowsnotificationslistener.cpp @@ -112,7 +112,7 @@ void WindowsNotificationsListener::onNotificationChanged(const UserNotificationL reader.ReadBytes({bufferArray.data(), bufferArray.data() + bufferArray.size()}); QImage image; - if (image.loadFromData(bufferArray.data(), (int)(bufferArray.size()))) { + if (image.loadFromData(bufferArray.data(), static_cast(bufferArray.size()))) { // Write the logo buffer to the QIODevice QSharedPointer iconSource = iconFromQImage(image); if (iconSource) {