blob: d358dde03268bcec531ed9a6071cc19779df3c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-cd,v 1.1 2011/03/03 05:50:04 adam Exp $
Avoid error when compiling with Clang.
--- src/gui/kernel/qcocoaview_mac.mm.orig 2011-01-12 10:05:05.000000000 +0000
+++ src/gui/kernel/qcocoaview_mac.mm
@@ -1383,7 +1383,7 @@ static int qCocoaViewCount = 0;
if (!selectedText.isEmpty()) {
QCFString string(selectedText.mid(theRange.location, theRange.length));
const NSString *tmpString = reinterpret_cast<const NSString *>((CFStringRef)string);
- return [[[NSAttributedString alloc] initWithString:tmpString] autorelease];
+ return [[[NSAttributedString alloc] initWithString:(NSString *)tmpString] autorelease];
} else {
return nil;
}
|