mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
Revert "solid: check if the object is null before qobject_cast<T>()-ing it in return_SOLID_CALL() macro"
see the following commit in the Katie repo: d87d2a4e09388bd07560a807be848d4dbc995807
This commit is contained in:
parent
5e8ef901ce
commit
5c66432bfe
1 changed files with 1 additions and 4 deletions
|
@ -24,11 +24,8 @@
|
|||
#include <QtCore/QObject>
|
||||
|
||||
#define return_SOLID_CALL(Type, Object, Default, Method) \
|
||||
if (Object == nullptr) { \
|
||||
return Default; \
|
||||
} \
|
||||
Type t = qobject_cast<Type>(Object); \
|
||||
if (t != nullptr) \
|
||||
if (t!=0) \
|
||||
{ \
|
||||
return t->Method; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Reference in a new issue