Switching to static_cast
This commit is contained in:
parent
d91409bb73
commit
36f8b27a0d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue