Commit 813539a7 authored by Leandro Melo's avatar Leandro Melo Committed by hjk
Browse files

C++: Fix lexer for token Q_SLOT



When adding Q_EMIT a while ago the the if chain got messed up
and Q_SLOT was being skipped.

Change-Id: Ib1f49c00290a09286506de9510d0067eaf5e3b96
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e160d286
...@@ -424,19 +424,6 @@ static inline int classify6(const char *s, bool q, bool) { ...@@ -424,19 +424,6 @@ static inline int classify6(const char *s, bool q, bool) {
} }
} }
} }
else if (q && s[0] == 'Q') {
if (s[1] == '_') {
if (s[2] == 'E') {
if (s[3] == 'M') {
if (s[4] == 'I') {
if (s[5] == 'T') {
return T_Q_EMIT;
}
}
}
}
}
}
else if (s[0] == 'r') { else if (s[0] == 'r') {
if (s[1] == 'e') { if (s[1] == 'e') {
if (s[2] == 't') { if (s[2] == 't') {
...@@ -545,6 +532,15 @@ static inline int classify6(const char *s, bool q, bool) { ...@@ -545,6 +532,15 @@ static inline int classify6(const char *s, bool q, bool) {
} }
} }
} }
else if (s[2] == 'E') {
if (s[3] == 'M') {
if (s[4] == 'I') {
if (s[5] == 'T') {
return T_Q_EMIT;
}
}
}
}
} }
} }
return T_IDENTIFIER; return T_IDENTIFIER;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment