diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-08-20 19:51:31 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-08-20 19:51:31 (GMT) |
commit | 1af6fc12def29e3f44dd7fcf5635c688902f29c8 (patch) | |
tree | 3731b65cb36ade6172ed47d27b47b4d358adc2a9 /src/gui/image/qpixmap_win.cpp | |
parent | 0f42290719ebe6d930ba28fdf256e64d9c97be37 (diff) | |
download | Qt-1af6fc12def29e3f44dd7fcf5635c688902f29c8.zip Qt-1af6fc12def29e3f44dd7fcf5635c688902f29c8.tar.gz Qt-1af6fc12def29e3f44dd7fcf5635c688902f29c8.tar.bz2 |
Fix qpixmap*.cpp after latest QExplicitlySharedDataPointer changes.
static_cast'ing this pointer type is not possible. You must call data()
or constData() to get the actual pointer to cast.
Diffstat (limited to 'src/gui/image/qpixmap_win.cpp')
-rw-r--r-- | src/gui/image/qpixmap_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_win.cpp b/src/gui/image/qpixmap_win.cpp index b0f17ba..f12088d 100644 --- a/src/gui/image/qpixmap_win.cpp +++ b/src/gui/image/qpixmap_win.cpp @@ -123,7 +123,7 @@ HBITMAP QPixmap::toWinHBITMAP(HBitmapFormat format) const { HBITMAP bitmap = 0; if (data->classId() == QPixmapData::RasterClass) { - QRasterPixmapData* d = static_cast<QRasterPixmapData*>(data); + QRasterPixmapData* d = static_cast<QRasterPixmapData*>(data.data()); int w = d->image.width(); int h = d->image.height(); |