summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-20 18:41:21 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-22 20:45:21 (GMT)
commit90aca5ef41e88cb94168912dc02d327419c66294 (patch)
treee480e3e67de72ad239a1fb71a72ef397d89f4f72
parent82c34d35277d2710152a16a72354af97dcb71beb (diff)
downloadDoxygen-90aca5ef41e88cb94168912dc02d327419c66294.zip
Doxygen-90aca5ef41e88cb94168912dc02d327419c66294.tar.gz
Doxygen-90aca5ef41e88cb94168912dc02d327419c66294.tar.bz2
Refactoring: fix for potentially uninitialized variables
-rw-r--r--src/definition.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/definition.h b/src/definition.h
index 444b188..6c66bc7 100644
--- a/src/definition.h
+++ b/src/definition.h
@@ -47,7 +47,7 @@ class FTextStream;
struct DocInfo
{
QCString doc;
- int line;
+ int line = -1;
QCString file;
};
@@ -56,17 +56,17 @@ struct BriefInfo
{
QCString doc;
QCString tooltip;
- int line;
+ int line = -1;
QCString file;
};
/** Data associated with description found in the body. */
struct BodyInfo
{
- int defLine; //!< line number of the start of the definition
- int startLine; //!< line number of the start of the definition's body
- int endLine; //!< line number of the end of the definition's body
- FileDef *fileDef; //!< file definition containing the function body
+ int defLine = -1; //!< line number of the start of the definition
+ int startLine = -1; //!< line number of the start of the definition's body
+ int endLine = -1; //!< line number of the end of the definition's body
+ FileDef *fileDef = 0; //!< file definition containing the function body
};
/** The common base class of all entity definitions found in the sources.