Skip to content

Commit 6749082

Browse files
committed
Merge pull request #2289 from laanwj/201301_qimage_bits
Use QImage.bits instead of QImage.constBits to ease backporting
2 parents f507067 + 17121ec commit 6749082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/notificator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ FreedesktopImage::FreedesktopImage(const QImage &img):
113113
{
114114
// Convert 00xAARRGGBB to RGBA bytewise (endian-independent) format
115115
QImage tmp = img.convertToFormat(QImage::Format_ARGB32);
116-
const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.constBits());
116+
const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.bits());
117117

118118
unsigned int num_pixels = width * height;
119119
image.resize(num_pixels * BYTES_PER_PIXEL);

0 commit comments

Comments
 (0)