diff --git a/src/corelib/kernel/qobjectdefs.h b/src/corelib/kernel/qobjectdefs.h index 705956869d..48d05cec46 100644 --- a/src/corelib/kernel/qobjectdefs.h +++ b/src/corelib/kernel/qobjectdefs.h @@ -135,7 +135,7 @@ class QString; /* tmake ignore Q_OBJECT */ #define Q_OBJECT_CHECK \ template inline void qt_check_for_QOBJECT_macro(const T &_q_argument) const \ - { int i = qYouForgotTheQ_OBJECT_Macro(this, &_q_argument); i = i; } + { int i = qYouForgotTheQ_OBJECT_Macro(this, &_q_argument); i = i + 1; } template inline int qYouForgotTheQ_OBJECT_Macro(T, T) { return 0; }