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:
Ivailo Monev 2024-05-10 09:56:46 +03:00
parent 5e8ef901ce
commit 5c66432bfe

View file

@ -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; \
} \