summaryrefslogtreecommitdiff
path: root/autodoc
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-10 15:15:58 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-26 22:02:39 +0200
commit97fb350c10a1448590292c20192b31f245a69622 (patch)
tree700020371bd2b5e19d8bd8395d3af2ab184f0eef /autodoc
parent35579b7f6e9cb761dea98bf33beb4f43d0b51dac (diff)
cppcheck: unread Var deleted in autodoc, cx_c_pp.cxx
Diffstat (limited to 'autodoc')
-rw-r--r--autodoc/source/parser/cpp/cx_c_pp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/autodoc/source/parser/cpp/cx_c_pp.cxx b/autodoc/source/parser/cpp/cx_c_pp.cxx
index 9c81fe71af36..afb389e8065c 100644
--- a/autodoc/source/parser/cpp/cx_c_pp.cxx
+++ b/autodoc/source/parser/cpp/cx_c_pp.cxx
@@ -98,9 +98,7 @@ Context_Preprocessor::ReadDefine( CharacterSource & io_rText )
cNext = io_rText.MoveOn() )
{ }
- bool bMacro = cNext == '(';
-
- if ( NOT bMacro )
+ if ( NOT (cNext == '(') )
{
SetNewToken( new Tok_DefineName(io_rText.CutToken()) );
SetFollowUpContext( pContext_PP_Definition.Ptr() );