Cocoa: fix compiler warning
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 21 Jun 2011 11:53:21 +0000 (13:53 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 21 Jun 2011 11:53:21 +0000 (13:53 +0200)
src/plugins/platforms/cocoa/qcocoabackingstore.mm

index 1cd1fa3..1a25608 100644 (file)
@@ -92,7 +92,7 @@ void QCocoaBackingStore::resize(const QSize &size, const QRegion &)
     delete m_image;
     m_image = new QImage(size,QImage::Format_ARGB32_Premultiplied);
     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