diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-14 08:36:39 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-14 09:18:22 (GMT) |
commit | 4993acb83e7b9e118bfad45f02864a26013797f5 (patch) | |
tree | 67203da1375ab56553fd0b6bcfa83bd8a56ee245 /src/gui/kernel | |
parent | 3ccf773d344625ae306c55855cedd5d718212718 (diff) | |
download | Qt-4993acb83e7b9e118bfad45f02864a26013797f5.zip Qt-4993acb83e7b9e118bfad45f02864a26013797f5.tar.gz Qt-4993acb83e7b9e118bfad45f02864a26013797f5.tar.bz2 |
use qt_mac_QStringToNString & qt_mac_NSStringToQString
These functions hide all this horrible casting and
we've had them for a while. When I see them, I try
to replace them as it keeps the code much more readable.
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 5e2dfb6..6cdb5fe 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -2864,8 +2864,7 @@ void QWidgetPrivate::setWindowTitle_sys(const QString &caption) SetWindowTitleWithCFString(qt_mac_window_for(q), QCFString(caption)); #else QMacCocoaAutoReleasePool pool; - [qt_mac_window_for(q) - setTitle:reinterpret_cast<const NSString *>(static_cast<CFStringRef>(QCFString(caption)))]; + [qt_mac_window_for(q) setTitle:qt_mac_QStringToNSString(caption)]; #endif } } @@ -2977,8 +2976,7 @@ void QWidgetPrivate::setWindowIconText_sys(const QString &iconText) SetWindowAlternateTitle(qt_mac_window_for(q), QCFString(iconText)); #else QMacCocoaAutoReleasePool pool; - [qt_mac_window_for(q) - setMiniwindowTitle:reinterpret_cast<const NSString *>(static_cast<CFStringRef>(QCFString(iconText)))]; + [qt_mac_window_for(q) setMiniwindowTitle:qt_mac_QStringToNSString(iconText)]; #endif } } |