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()});
|
reader.ReadBytes({bufferArray.data(), bufferArray.data() + bufferArray.size()});
|
||||||
|
|
||||||
QImage image;
|
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
|
// Write the logo buffer to the QIODevice
|
||||||
QSharedPointer<QIODevice> iconSource = iconFromQImage(image);
|
QSharedPointer<QIODevice> iconSource = iconFromQImage(image);
|
||||||
if (iconSource) {
|
if (iconSource) {
|
||||||
|
|
Loading…
Reference in a new issue