Created
February 25, 2012 11:20
-
-
Save jkp/1907928 to your computer and use it in GitHub Desktop.
Patch to fix QT compilation with clang - http://bit.ly/yyg5Ch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/gui/kernel/qt_cocoa_helpers_mac_p.h b/src/gui/kernel/qt_cocoa_helpers_mac_p.h | |
| index d831e27..fac5054 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 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment