summaryrefslogtreecommitdiff
path: root/idlc/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-06 16:36:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-06 16:36:26 +0200
commitf8ecdb7619cad29a6187004e28075efd928bd8aa (patch)
tree363be97a12e6f2dd38213f329b698692b333ebdc /idlc/inc
parent187d7f8f527217c1f958feec7d3a83f866a8e477 (diff)
Simplify AstExpression::compare
...to only work with LONG values, as it is only used to compare enumerator values. (But keep its general defensive-programming air that's so prevalent across the idlc code base; not sure whether it could rightfully be tightened, or whether this might be needed in parser's error recovery.) Change-Id: I15f1700834f9397f3c2e0ffdb00e2abeecb734f9
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/astexpression.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/inc/astexpression.hxx b/idlc/inc/astexpression.hxx
index ca060719ef2e..9bc1b9004409 100644
--- a/idlc/inc/astexpression.hxx
+++ b/idlc/inc/astexpression.hxx
@@ -114,8 +114,8 @@ public:
// Evaluate then store value inside this AstExpression
void evaluate();
- // Compare to AstExpressions
- bool compare(AstExpression *pExpr);
+ // Compare LONG AstExpression values
+ bool compareLong(AstExpression *pExpr);
OString toString();
private: