summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-12-02 13:23:25 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-12-02 13:23:25 (GMT)
commitef06c8d14c7889e723331601ac847cc481966f5c (patch)
treef95298a5b676b41d3bdf72f2c17f7765b5cb7948 /src/namespacedef.cpp
parent9b14bf58c30a02ef19abebec280568532dc58ed4 (diff)
downloadDoxygen-ef06c8d14c7889e723331601ac847cc481966f5c.zip
Doxygen-ef06c8d14c7889e723331601ac847cc481966f5c.tar.gz
Doxygen-ef06c8d14c7889e723331601ac847cc481966f5c.tar.bz2
Coverity uninitialized
Fixing a number of uninitialized variables based on the coverity output of November 30, 2019
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index fa258a0..220f300 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -124,23 +124,23 @@ class NamespaceDefImpl : public DefinitionImpl, public NamespaceDef
QCString fileName;
FileList files;
- NamespaceSDict *usingDirList;
- SDict<Definition> *usingDeclList;
- SDict<Definition> *m_innerCompounds;
+ NamespaceSDict *usingDirList = 0;
+ SDict<Definition> *usingDeclList = 0;
+ SDict<Definition> *m_innerCompounds = 0;
- MemberSDict *m_allMembersDict;
+ MemberSDict *m_allMembersDict = 0;
QList<MemberList> m_memberLists;
- MemberGroupSDict *memberGroupSDict;
- ClassSDict *classSDict;
- ClassSDict *interfaceSDict;
- ClassSDict *structSDict;
- ClassSDict *exceptionSDict;
- NamespaceSDict *namespaceSDict;
- bool m_subGrouping;
+ MemberGroupSDict *memberGroupSDict = 0;
+ ClassSDict *classSDict = 0;
+ ClassSDict *interfaceSDict = 0;
+ ClassSDict *structSDict = 0;
+ ClassSDict *exceptionSDict = 0;
+ NamespaceSDict *namespaceSDict = 0;
+ bool m_subGrouping = false;
enum { NAMESPACE, MODULE, CONSTANT_GROUP, LIBRARY } m_type;
- bool m_isPublished;
+ bool m_isPublished = false;
QCString metaData;
- bool m_inline;
+ bool m_inline = false;
};
NamespaceDef *createNamespaceDef(const char *defFileName,int defLine,int defColumn,
@@ -246,7 +246,7 @@ class NamespaceDefAliasImpl : public DefinitionAliasImpl, public NamespaceDef
bool isVisited() const { return m_visited; }
private:
- bool m_visited;
+ bool m_visited = false;
};
NamespaceDef *createNamespaceDefAlias(const Definition *newScope,const NamespaceDef *nd)