Fix linking of the QObject test under Windows.

Change-Id: Iced5a37893969f555f39d3f4683b32ca2a399365
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Friedemann Kleint 2011-11-28 16:29:41 +01:00 committed by Qt by Nokia
parent b8d330904b
commit 8b12b566db
1 changed files with 2 additions and 2 deletions

View File

@ -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<Func> FuncType;
Func function;
QSlotObject(Func f) : function(f) {};
QSlotObject(Func f) : function(f) {}
virtual void call(QObject *receiver, void **a) {
FuncType::template call<Args, R>(function, static_cast<typename FuncType::Object *>(receiver), a);
}