diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-22 06:42:02 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-22 10:57:51 -0700 |
commit | 1ecc9b0cc0c4e7ad2b03236a788cf875189f1832 (patch) | |
tree | 15c9c28c046032e22a5ae155b59aa6f502c08848 /templatelayout.cpp | |
parent | 85dfb88f51098158a5fac52ce432a07625374c70 (diff) | |
download | subsurface-1ecc9b0cc0c4e7ad2b03236a788cf875189f1832.tar.gz |
Address uninitialized member warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'templatelayout.cpp')
-rw-r--r-- | templatelayout.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templatelayout.cpp b/templatelayout.cpp index 39bb014d6..880b6d774 100644 --- a/templatelayout.cpp +++ b/templatelayout.cpp @@ -16,7 +16,8 @@ int getTotalWork() return dives; } -TemplateLayout::TemplateLayout(print_options *PrintOptions) +TemplateLayout::TemplateLayout(print_options *PrintOptions) : + m_engine(NULL) { this->PrintOptions = PrintOptions; } @@ -80,7 +81,9 @@ QString TemplateLayout::generate() return htmlContent; } -Dive::Dive() +Dive::Dive() : + m_number(-1), + dive(NULL) { } |