vcl/jsdialog/jsdialogbuilder.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 879680acca22f33416a77737774bca360107b089
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Fri Jan 8 16:47:47 2021 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Tue Jan 19 14:14:30 2021 +0100

    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 <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109151
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 6e2b1453f0ab..d040108b9e22 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -721,11 +721,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;
     }
 }
 
@@ -914,11 +914,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;
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to