Commit 585efafb authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed invalid if statement found by cppcheck

parent 492c5041
...@@ -3576,7 +3576,7 @@ static void buildFunctionList(EntryNav *rootNav) ...@@ -3576,7 +3576,7 @@ static void buildFunctionList(EntryNav *rootNav)
md->setDocumentation(root->doc,root->docFile,root->docLine); md->setDocumentation(root->doc,root->docFile,root->docLine);
md->setInbodyDocumentation(root->inbodyDocs,root->inbodyFile,root->inbodyLine); md->setInbodyDocumentation(root->inbodyDocs,root->inbodyFile,root->inbodyLine);
md->setDocsForDefinition(!root->proto); 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->setBodySegment(root->bodyLine,root->endBodyLine);
md->setBodyDef(rfd); md->setBodyDef(rfd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment