summaryrefslogtreecommitdiffstats
path: root/src/reflist.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-04-10 12:13:39 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-04-10 12:13:39 (GMT)
commit533242a8b422e66854327468a544a461c8bf9b7c (patch)
treeeadea9931af7cce7a0a27da0c8bdc6919626af10 /src/reflist.cpp
parentd6c0408b905868713856921af35654accf918686 (diff)
downloadDoxygen-533242a8b422e66854327468a544a461c8bf9b7c.zip
Doxygen-533242a8b422e66854327468a544a461c8bf9b7c.tar.gz
Doxygen-533242a8b422e66854327468a544a461c8bf9b7c.tar.bz2
Fixes after coverity run
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r--src/reflist.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp
index b04c494..55e9708 100644
--- a/src/reflist.cpp
+++ b/src/reflist.cpp
@@ -3,8 +3,8 @@
* Copyright (C) 1997-2020 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -24,7 +24,7 @@
void RefList::generatePage()
{
std::sort(m_entries.begin(),m_entries.end(),
- [](std::unique_ptr<RefItem> &left,std::unique_ptr<RefItem> &right)
+ [](std::unique_ptr<RefItem> &left,std::unique_ptr<RefItem> &right)
{ return qstricmp(left->title(),left->title()); });
//RefItem *item;
QCString doc;
@@ -59,7 +59,7 @@ void RefList::generatePage()
QCString escapedTitle = substitute(item->title(),"\\","\\\\");
doc += " \""+escapedTitle+"\" ";
// write declaration in case a function with arguments
- if (!item->args().isEmpty())
+ if (!item->args().isEmpty())
{
// escape @'s in argument list, needed for Java annotations (see issue #6208)
// escape \'s in argument list (see issue #6533)
@@ -76,6 +76,7 @@ void RefList::generatePage()
doc += " ";
doc += item->text();
lastGroup = item->group();
+ first = false;
}
if (!first)
{