summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2012-04-26 12:31:40 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-27 05:30:43 (GMT)
commit473e2d311ea8ec701e8c915f5c5d8b1f99209374 (patch)
treea54b7587d08bfc2d656257bac1c16c6b0d4ace2f /src/plugins
parent7224b30171f10ee659014af0c340ad43782fe22b (diff)
downloadQt-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/plugins')
-rw-r--r--src/plugins/bearer/corewlan/qcorewlanengine.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm
index 5552252..422c835 100644
--- a/src/plugins/bearer/corewlan/qcorewlanengine.mm
+++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm
@@ -73,7 +73,7 @@ inline QString qt_NSStringToQString(const NSString *nsstr)
{ return QCFString::toQString(reinterpret_cast<const CFStringRef>(nsstr)); }
inline NSString *qt_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]; }
@interface QT_MANGLE_NAMESPACE(QNSListener) : NSObject