diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-18 19:07:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-18 19:07:17 (GMT) |
commit | 48ced3ea8071b3141216482e2821e10250910947 (patch) | |
tree | 547a30cd6cc5015b3e85170cd944e14224e7ae9c /src/template.cpp | |
parent | 625e7a17bc708a32d52158ac24e7308c9d62fe84 (diff) | |
download | Doxygen-48ced3ea8071b3141216482e2821e10250910947.zip Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.gz Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.bz2 |
Fixed various issues found by PVS-Studio.
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/template.cpp b/src/template.cpp index 4250f08..5102978 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -1978,16 +1978,13 @@ class ExpressionParser TRACE(("{parseLiteral(%s)\n",m_curToken.id.data())); ExprAst *expr = new ExprAstLiteral(m_curToken.id); getNextToken(); - if (expr) + while (m_curToken.type==ExprToken::Operator && + m_curToken.op==Operator::Filter) { - while (m_curToken.type==ExprToken::Operator && - m_curToken.op==Operator::Filter) - { - getNextToken(); - ExprAstFilter *filter = parseFilter(); - if (!filter) break; - expr = new ExprAstFilterAppl(expr,filter); - } + getNextToken(); + ExprAstFilter *filter = parseFilter(); + if (!filter) break; + expr = new ExprAstFilterAppl(expr,filter); } TRACE(("}parseLiteral()\n")); return expr; |