diff options
Diffstat (limited to 'x11/qt4-libs/patches/patch-cf')
-rw-r--r-- | x11/qt4-libs/patches/patch-cf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/qt4-libs/patches/patch-cf b/x11/qt4-libs/patches/patch-cf new file mode 100644 index 00000000000..b2d943987d9 --- /dev/null +++ b/x11/qt4-libs/patches/patch-cf @@ -0,0 +1,15 @@ +$NetBSD: patch-cf,v 1.1 2011/03/03 05:50:04 adam Exp $ + +Avoid error when compiling with Clang. + +--- src/gui/kernel/qt_cocoa_helpers_mac.mm.orig 2011-01-12 10:13:43.000000000 +0000 ++++ src/gui/kernel/qt_cocoa_helpers_mac.mm +@@ -1333,7 +1333,7 @@ QString qt_mac_get_pasteboardString(OSPa + if (PasteboardCopyName (paste, &pbname)) { + pb = [NSPasteboard generalPasteboard]; + } else { +- pb = [NSPasteboard pasteboardWithName:reinterpret_cast<const NSString *>(pbname)]; ++ pb = [NSPasteboard pasteboardWithName:(NSString *)reinterpret_cast<const NSString *>(pbname)]; + CFRelease (pbname); + } + if (pb) { |