diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-04-26 12:31:40 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-27 05:30:43 (GMT) |
commit | 473e2d311ea8ec701e8c915f5c5d8b1f99209374 (patch) | |
tree | a54b7587d08bfc2d656257bac1c16c6b0d4ace2f /src/gui | |
parent | 7224b30171f10ee659014af0c340ad43782fe22b (diff) | |
download | Qt-473e2d311ea8ec701e8c915f5c5d8b1f99209374.zip Qt-473e2d311ea8ec701e8c915f5c5d8b1f99209374.tar.gz Qt-473e2d311ea8ec701e8c915f5c5d8b1f99209374.tar.bz2 |
Compile on Mac OS X with unsupported/macx-clang
Clang does not allow implicit const to non-const conversion like gcc
does. Fix this.
Change-Id: I1448975e1935a54405c20851841f0559c7bb9d3d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac_p.h b/src/gui/kernel/qt_cocoa_helpers_mac_p.h index d831e27..17f1769 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac_p.h +++ b/src/gui/kernel/qt_cocoa_helpers_mac_p.h @@ -215,7 +215,7 @@ inline QString qt_mac_NSStringToQString(const NSString *nsstr) { return QCFString::toQString(reinterpret_cast<const CFStringRef>(nsstr)); } inline NSString *qt_mac_QStringToNSString(const QString &qstr) -{ return [reinterpret_cast<const NSString *>(QCFString::toCFStringRef(qstr)) autorelease]; } +{ return [const_cast<NSString *>(reinterpret_cast<const NSString *>(QCFString::toCFStringRef(qstr))) autorelease]; } #ifdef QT_MAC_USE_COCOA class QCocoaPostMessageArgs { |