diff options
Diffstat (limited to 'x11/qt4-libs/patches/patch-cc')
-rw-r--r-- | x11/qt4-libs/patches/patch-cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/qt4-libs/patches/patch-cc b/x11/qt4-libs/patches/patch-cc new file mode 100644 index 00000000000..09a21e09b20 --- /dev/null +++ b/x11/qt4-libs/patches/patch-cc @@ -0,0 +1,15 @@ +$NetBSD: patch-cc,v 1.1 2011/03/03 05:50:04 adam Exp $ + +Avoid error when compiling with Clang. + +--- src/gui/kernel/qwidget_mac.mm.orig 2011-01-12 10:01:28.000000000 +0000 ++++ src/gui/kernel/qwidget_mac.mm +@@ -3206,7 +3206,7 @@ void QWidgetPrivate::setWindowIcon_sys(b + if (iconButton == nil) { + QCFString string(q->windowTitle()); + const NSString *tmpString = reinterpret_cast<const NSString *>((CFStringRef)string); +- [qt_mac_window_for(q) setRepresentedURL:[NSURL fileURLWithPath:tmpString]]; ++ [qt_mac_window_for(q) setRepresentedURL:[NSURL fileURLWithPath:(NSString *)tmpString]]; + iconButton = [qt_mac_window_for(q) standardWindowButton:NSWindowDocumentIconButton]; + } + if (icon.isNull()) { |