diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-22 19:24:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 19:24:49 (GMT) |
commit | a3d53eda2903134a3d3e3d279088cfe2bec92a4e (patch) | |
tree | 9e424052e6ec4414cbd22aedef1e064d5883459a | |
parent | 3995f8b527f4d6461886fd73dfae6b7262b0819f (diff) | |
parent | c16cda14f6234ce541d204be1267751f97a6f2a0 (diff) | |
download | Doxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.zip Doxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.tar.gz Doxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.tar.bz2 |
Merge pull request #8502 from albert-github/feature/bug_coverity_20210414
Coverity warnings
-rwxr-xr-x[-rw-r--r--] | src/template.cpp | 1 | ||||
-rw-r--r-- | src/utf8.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/template.cpp b/src/template.cpp index 9f3fe44..9ae2c11 100644..100755 --- a/src/template.cpp +++ b/src/template.cpp @@ -4024,6 +4024,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) |