CPlusPlus: Fix isQtReservedWord

checking for size >= 4 masks Q_D and Q_Q.

Change-Id: If9ab7d3b2c2c571e73b98e89908e492fc6241296
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-29 17:11:17 +01:00
parent 9c895ed6f1
commit 7d76dd0079

View File

@@ -89,7 +89,7 @@ static bool same(const char *a, const char *b, int size)
static bool isQtReservedWord(const char *name, int size)
{
if (size < 4)
if (size < 3)
return false;
const char c = name[0];