Switching to static_cast

This commit is contained in:
Rob Emery 2024-10-10 09:01:48 +01:00
parent d91409bb73
commit 36f8b27a0d

View file

@ -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<int>(bufferArray.size()))) {
// Write the logo buffer to the QIODevice
QSharedPointer<QIODevice> iconSource = iconFromQImage(image);
if (iconSource) {