diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index f69eb693a35..58326dbd568 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -169,15 +169,15 @@ class QIOType : public QAppleRefCounted +class QCFString : public QCFType { public: using QCFType::QCFType; Q_NODISCARD_CTOR QCFString(const QString &str) : QCFType(0), string(str) {} Q_NODISCARD_CTOR QCFString(const CFStringRef cfstr = 0) : QCFType(cfstr) {} Q_NODISCARD_CTOR QCFString(const QCFType &other) : QCFType(other) {} - operator QString() const; - operator CFStringRef() const; + Q_CORE_EXPORT operator QString() const; + Q_CORE_EXPORT operator CFStringRef() const; private: QString string;