1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Remove poor man's static asserts.

This commit is contained in:
John Maguire 2012-03-19 21:19:24 +01:00
parent c4d3062459
commit e4ae4b6df5

View File

@ -191,7 +191,6 @@ Closure* NewClosure(
const char* signal, const char* signal,
QObject* receiver, QObject* receiver,
const char* slot) { const char* slot) {
Q_ASSERT(sender.data()->metaObject()); // Static check for something QObject-like.
return new SharedClosure(new SharedPointer<TP>(sender), signal, receiver, slot); return new SharedClosure(new SharedPointer<TP>(sender), signal, receiver, slot);
} }
@ -202,7 +201,6 @@ Closure* NewClosure(
QObject* receiver, QObject* receiver,
const char* slot, const char* slot,
const T0& val0) { const T0& val0) {
Q_ASSERT(sender.data()->metaObject()); // Static check for something QObject-like.
return new SharedClosure( return new SharedClosure(
new SharedPointer<TP>(sender), signal, receiver, slot, new SharedPointer<TP>(sender), signal, receiver, slot,
C_ARG(T0, val0)); C_ARG(T0, val0));
@ -216,7 +214,6 @@ Closure* NewClosure(
const char* slot, const char* slot,
const T0& val0, const T0& val0,
const T1& val1) { const T1& val1) {
Q_ASSERT(sender.data()->metaObject()); // Static check for something QObject-like.
return new SharedClosure( return new SharedClosure(
new SharedPointer<TP>(sender), signal, receiver, slot, new SharedPointer<TP>(sender), signal, receiver, slot,
C_ARG(T0, val0), C_ARG(T1, val1)); C_ARG(T0, val0), C_ARG(T1, val1));