diff options
Diffstat (limited to 'src/tools/moc/parser.h')
-rw-r--r-- | src/tools/moc/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/moc/parser.h b/src/tools/moc/parser.h index 63f4cf0d9a..f014d7e6b5 100644 --- a/src/tools/moc/parser.h +++ b/src/tools/moc/parser.h @@ -57,6 +57,7 @@ public: inline bool hasNext() const { return (index < symbols.size()); } inline Token next() { if (index >= symbols.size()) return NOTOKEN; return symbols.at(index++).token; } + inline Token peek() { if (index >= symbols.size()) return NOTOKEN; return symbols.at(index).token; } bool test(Token); void next(Token); void next(Token, const char *msg); |