summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-01-08 16:47:47 -0400
committerAndras Timar <andras.timar@collabora.com>2021-04-09 11:58:33 +0200
commit48b27bd8277212142644fb4536fcbd226b82ae68 (patch)
treebd4eeeb1ef139d4c8480ea2f0927600ae1859e62
parentcid#1470783 Logically dead code (diff)
downloadcore-48b27bd8277212142644fb4536fcbd226b82ae68.tar.gz
core-48b27bd8277212142644fb4536fcbd226b82ae68.zip
lok: fix initialization variable
It should initialize false Change-Id: I67249bc8040688ee82bf12532178eb133f80b8e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109021 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/jsdialog/jsdialogbuilder.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index c3e783452452..3352bac904d1 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -699,11 +699,11 @@ JSDialog::JSDialog(VclPtr<vcl::Window> aNotifierWindow, VclPtr<vcl::Window> aCon
std::string sTypeOfJSON)
: JSWidget<SalInstanceDialog, ::Dialog>(aNotifierWindow, aContentWindow, pDialog, pBuilder,
bTakeOwnership, sTypeOfJSON)
+ , m_bNotifyCreated(false)
{
if (aNotifierWindow && aNotifierWindow->IsDisableIdleNotify())
{
pDialog->AddEventListener(LINK(this, JSDialog, on_window_event));
- m_bNotifyCreated = false;
}
}
@@ -892,11 +892,11 @@ JSMessageDialog::JSMessageDialog(::MessageDialog* pDialog, VclPtr<vcl::Window> a
SalInstanceBuilder* pBuilder, bool bTakeOwnership)
: SalInstanceMessageDialog(pDialog, pBuilder, bTakeOwnership)
, JSDialogSender(m_xMessageDialog, aContentWindow, "dialog")
+ , m_bNotifyCreated(false)
{
if (aContentWindow && aContentWindow->IsDisableIdleNotify())
{
pDialog->AddEventListener(LINK(this, JSMessageDialog, on_window_event));
- m_bNotifyCreated = false;
}
}