diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-10-27 13:47:31 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 14:56:14 +0200 |
commit | ac96f78398d96a3d2c9a1e67e1315e9d0f663ad6 (patch) | |
tree | 5eff7be46cd77ce22d689abdad7bab9e2c59712d /src/widgets | |
parent | a73c3575005ff5636be207bf1ed680be9a5079bc (diff) |
Compilation fix (cannot assign const pointer to non-const pointer)
After reinterpret_casting to const NSString *, we need to const_cast to
drop the cast to match the return type.
Change-Id: I3d202aec10e719a48f29d96b81621492936ac6ad
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/platforms/mac/qt_cocoa_helpers_mac_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/platforms/mac/qt_cocoa_helpers_mac_p.h b/src/widgets/platforms/mac/qt_cocoa_helpers_mac_p.h index b46946c121..c85d39010c 100644 --- a/src/widgets/platforms/mac/qt_cocoa_helpers_mac_p.h +++ b/src/widgets/platforms/mac/qt_cocoa_helpers_mac_p.h @@ -214,7 +214,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]; } #endif |