From 6fb56a74c87c49341f2313f2dfc2f526e498fede Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 3 May 2016 22:22:57 -0700 Subject: [PATCH] tst_moc: Remove invalid preprocessor usage Doing what this code section was doing is not valid use of the preprocessor. Therefore, we don't have to have this behavior and are allowed to change how moc parses this. Change-Id: Id69569111e7d4e619e22ffff144b45ea91ae22e3 Reviewed-by: Olivier Goffart (Woboq GmbH) --- tests/auto/tools/moc/tst_moc.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 4a423b036c..2989ac4485 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -489,13 +489,6 @@ public: Q_ENUMS(EnumSourceClass::TestEnum) }; -#if defined(Q_MOC_RUN) -// Task #119503 -#define _TASK_119503 -#if !_TASK_119503 -#endif -#endif - class CtorTestClass : public QObject { Q_OBJECT