Cocoa: fix compiler warning

This commit is contained in:
Richard Moe Gustavsen 2011-06-21 13:53:21 +02:00
parent c477fa3e2c
commit 272daebaa0

View File

@ -92,7 +92,7 @@ void QCocoaBackingStore::resize(const QSize &size, const QRegion &)
delete m_image; delete m_image;
m_image = new QImage(size,QImage::Format_ARGB32_Premultiplied); m_image = new QImage(size,QImage::Format_ARGB32_Premultiplied);
NSSize newSize = NSMakeSize(size.width(),size.height()); NSSize newSize = NSMakeSize(size.width(),size.height());
[m_cocoaWindow->m_windowSurfaceView setImage:m_image]; [static_cast<QNSView *>(m_cocoaWindow->m_windowSurfaceView) setImage:m_image];
} }
QT_END_NAMESPACE QT_END_NAMESPACE