Mark Parser2::empty as const
This commit is contained in:
@@ -599,7 +599,7 @@ private:
|
|||||||
void *const data;
|
void *const data;
|
||||||
Symbol stack[kMaxStackSize];
|
Symbol stack[kMaxStackSize];
|
||||||
Symbol *stackPtr = stack;
|
Symbol *stackPtr = stack;
|
||||||
bool empty() { return stackPtr == stack; }
|
bool empty() const { return stackPtr == stack; }
|
||||||
void pop() {
|
void pop() {
|
||||||
assert(!empty());
|
assert(!empty());
|
||||||
--stackPtr;
|
--stackPtr;
|
||||||
|
|||||||
Reference in New Issue
Block a user