summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-04-14 12:31:22 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-04-14 12:31:22 (GMT)
commitc16cda14f6234ce541d204be1267751f97a6f2a0 (patch)
treed0fa0681057ab5f8efa19006826f81109f0bfca2
parent98c67549bc3cd855873e0ef5eeab7c6410699d78 (diff)
downloadDoxygen-c16cda14f6234ce541d204be1267751f97a6f2a0.zip
Doxygen-c16cda14f6234ce541d204be1267751f97a6f2a0.tar.gz
Doxygen-c16cda14f6234ce541d204be1267751f97a6f2a0.tar.bz2
Coverity warnings
Correcting new coverity warnings. - utf8.cpp is dead code. - template.cpp, made consistent with other render functions
-rwxr-xr-x[-rw-r--r--]src/template.cpp1
-rw-r--r--src/utf8.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 5ae5881..2e8dc4f 100644..100755
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -4023,6 +4023,7 @@ class TemplateNodeCycle : public TemplateNodeCreator<TemplateNodeCycle>
void render(TextStream &ts, TemplateContext *c)
{
TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
+ if (ci==0) return; // should not happen
ci->setLocation(m_templateName,m_line);
if (m_index<m_args.size())
{
diff --git a/src/utf8.cpp b/src/utf8.cpp
index 9ffc168..a00f615 100644
--- a/src/utf8.cpp
+++ b/src/utf8.cpp
@@ -117,8 +117,6 @@ static inline uint32_t convertUTF8CharToUnicode(const char *s,size_t bytesLeft,i
return uc;
}
}
- len=0;
- return 0;
}
std::string getUTF8CharAt(const std::string &input,size_t pos)