summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-08-18 19:07:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-08-18 19:07:17 (GMT)
commit48ced3ea8071b3141216482e2821e10250910947 (patch)
tree547a30cd6cc5015b3e85170cd944e14224e7ae9c /src/index.cpp
parent625e7a17bc708a32d52158ac24e7308c9d62fe84 (diff)
downloadDoxygen-48ced3ea8071b3141216482e2821e10250910947.zip
Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.gz
Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.bz2
Fixed various issues found by PVS-Studio.
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp
index e7ba8e7..06d2185 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3787,7 +3787,7 @@ static void writeIndex(OutputList &ol)
{
title = theTranslator->trMainPage();
}
- else
+ else if (Doxygen::mainPage)
{
title = filterTitle(Doxygen::mainPage->title());
}
@@ -4086,7 +4086,7 @@ static void writeIndexHierarchyEntries(OutputList &ol,const QList<LayoutNavEntry
for (i=oldSize;i<newSize;i++) indexWritten.at(i)=FALSE;
}
//printf("starting %s kind=%d\n",lne->title().data(),lne->kind());
- bool addToIndex=lne==0 || lne->visible();
+ bool addToIndex=lne->visible();
bool needsClosing=FALSE;
if (!indexWritten.at(index))
{