[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 12 07:54:52 UTC 2019


 sfx2/source/view/viewfrm.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a62eacace46f5057f5b771448a0d0c443d3a4ea3
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Apr 11 21:27:26 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Apr 12 09:53:13 2019 +0200

    Related: tdf#124238 don't assert on closing new TipOfTheDayDialog
    
    Change-Id: I17d8e47c6ebd8f4fcbb5613db640bb771b406a54
    Reviewed-on: https://gerrit.libreoffice.org/70611
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 50201c343c76..71573f3e6fe1 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1234,8 +1234,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
                     const sal_Int32 nDay = std::chrono::duration_cast<std::chrono::hours>(t0).count()/24; // days since 1970-01-01
                     if (nDay-nLastTipOfTheDay > 0) { //only once per day
                         VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
-                        VclPtr<VclAbstractDialog> pDlg =
-                            pFact->CreateTipOfTheDayDialog( GetWindow().GetFrameWeld() );
+                        ScopedVclPtr<VclAbstractDialog> pDlg(
+                            pFact->CreateTipOfTheDayDialog(GetWindow().GetFrameWeld()));
                         pDlg->Execute();
                     }
                 }


More information about the Libreoffice-commits mailing list