diff --git a/src/corelib/kernel/qobject.h b/src/corelib/kernel/qobject.h index d4a532a9d8..27165cdcc3 100644 --- a/src/corelib/kernel/qobject.h +++ b/src/corelib/kernel/qobject.h @@ -335,7 +335,7 @@ private: private: // internal base class (interface) containing functions required to call a slot managed by a pointer to function. - struct QSlotObjectBase { + struct Q_CORE_EXPORT QSlotObjectBase { QAtomicInt ref; QSlotObjectBase() : ref(1) {} virtual ~QSlotObjectBase(); @@ -347,7 +347,7 @@ private: { typedef QtPrivate::FunctionPointer FuncType; Func function; - QSlotObject(Func f) : function(f) {}; + QSlotObject(Func f) : function(f) {} virtual void call(QObject *receiver, void **a) { FuncType::template call(function, static_cast(receiver), a); }