From 65ee0e616c4fce8623a7293bb33d6b73c7e85730 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 22:08:17 +0100 Subject: [PATCH] Force cast to int to avoid warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data --- 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 137709e9a..bca593518 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(), bufferArray.size())) { + if (image.loadFromData(bufferArray.data(), (int)(bufferArray.size()))) { // Write the logo buffer to the QIODevice QSharedPointer iconSource = iconFromQImage(image); if (iconSource) {