blob: 09a21e09b202fe87427d58588bed9dc4a3509f59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()) {
|