summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoaview_mac.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-09-08 10:52:18 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-15 12:10:07 (GMT)
commit2e2e6e642494dca10b6d101088b8c5237d05f036 (patch)
tree71cfe0f2c26a30ba9ad398028dc5ab7c3c95e983 /src/gui/kernel/qcocoaview_mac.mm
parent133f510ce7e310d3bbd6aeb57de510d491fe6022 (diff)
downloadQt-2e2e6e642494dca10b6d101088b8c5237d05f036.zip
Qt-2e2e6e642494dca10b6d101088b8c5237d05f036.tar.gz
Qt-2e2e6e642494dca10b6d101088b8c5237d05f036.tar.bz2
Don't assing 'const Foo*' to a 'Foo*'
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac.mm')
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index 2016d40..49f7d7f 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -1417,7 +1417,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:const_cast<NSString *>(tmpString)] autorelease];
} else {
return nil;
}