From 90aca5ef41e88cb94168912dc02d327419c66294 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 20 Jan 2021 19:41:21 +0100 Subject: Refactoring: fix for potentially uninitialized variables --- src/definition.h | 12 ++++++------ 1 file 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. -- cgit v0.12