diff --git a/src/corelib/kernel/qcore_mac.cpp b/src/corelib/kernel/qcore_mac.cpp index c689f47d8f..bfb3b2ff07 100644 --- a/src/corelib/kernel/qcore_mac.cpp +++ b/src/corelib/kernel/qcore_mac.cpp @@ -45,16 +45,16 @@ QT_BEGIN_NAMESPACE QCFString::operator QString() const { - if (string.isEmpty() && type) - const_cast(this)->string = QString::fromCFString(type); + if (string.isEmpty() && value) + const_cast(this)->string = QString::fromCFString(value); return string; } QCFString::operator CFStringRef() const { - if (!type) - const_cast(this)->type = string.toCFString(); - return type; + if (!value) + const_cast(this)->value = string.toCFString(); + return value; } QT_END_NAMESPACE diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index 881212a224..c2c5a519aa 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -80,23 +80,20 @@ template { public: using QAppleRefCounted::QAppleRefCounted; - template X as() const { return reinterpret_cast(this->type); } + template X as() const { return reinterpret_cast(this->value); } static QCFType constructFromGet(const T &t) { CFRetain(t);