summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-17 20:21:36 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-17 20:21:36 (GMT)
commit585efafb18dbdc371a46063cbeb272e5bb292628 (patch)
tree264f0a965a659b8f072240d6460c2d31e23dfdd0
parent492c50410477ec49deae280e3bc414459ee30fab (diff)
downloadDoxygen-585efafb18dbdc371a46063cbeb272e5bb292628.zip
Doxygen-585efafb18dbdc371a46063cbeb272e5bb292628.tar.gz
Doxygen-585efafb18dbdc371a46063cbeb272e5bb292628.tar.bz2
Fixed invalid if statement found by cppcheck
-rw-r--r--src/doxygen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 9d820cb..e494356 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -3576,7 +3576,7 @@ static void buildFunctionList(EntryNav *rootNav)
md->setDocumentation(root->doc,root->docFile,root->docLine);
md->setInbodyDocumentation(root->inbodyDocs,root->inbodyFile,root->inbodyLine);
md->setDocsForDefinition(!root->proto);
- if (md->getStartBodyLine()!=-1 && md->getStartBodyLine()==-1)
+ if (md->getStartBodyLine()==-1 && root->bodyLine!=-1)
{
md->setBodySegment(root->bodyLine,root->endBodyLine);
md->setBodyDef(rfd);