diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-22 21:45:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-23 08:49:31 +0100 |
commit | 3534eef59d04ca22323330245fe91c758072f758 (patch) | |
tree | 69bd1658b117c64fba107c0210406d812aec6e93 | |
parent | Better make the zero-initialization more explicit (diff) | |
download | core-3534eef59d04ca22323330245fe91c758072f758.tar.gz core-3534eef59d04ca22323330245fe91c758072f758.zip |
Better make the zero-initialization more explicit
...if initializing these members is necessary at all; a bit hard to tell from
the code.
Change-Id: I384fbeedb3a5b0690a80cabdd13ca13d07e8d627
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 59faff1d1fc8..0ad1c2eb1410 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -1148,7 +1148,9 @@ static void initWindow(TiledWindow& rWindow) { if (!rWindow.m_pCommentsSidebar) { - rWindow.m_pCommentsSidebar.reset(new CommentsSidebar()); + rWindow.m_pCommentsSidebar.reset(new CommentsSidebar); + rWindow.m_pCommentsSidebar->m_pCommentsVBox = nullptr; + rWindow.m_pCommentsSidebar->m_pScrolledWindow = nullptr; rWindow.m_pCommentsSidebar->m_pMainVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(rWindow.m_pMainHBox), rWindow.m_pCommentsSidebar->m_pMainVBox); |