[Libreoffice-commits] core.git: compilerplugins/clang framework/source include/svl svl/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 27 12:51:43 UTC 2019


 compilerplugins/clang/virtualdead.results         |    6 ------
 framework/source/fwe/helper/undomanagerhelper.cxx |    6 ------
 include/svl/undo.hxx                              |    1 -
 svl/source/undo/undo.cxx                          |    8 --------
 4 files changed, 21 deletions(-)

New commits:
commit 4b995afda324fb4e85991c723b63a2703f33669e
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Sep 26 11:17:57 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Sep 27 14:50:11 2019 +0200

    loplugin:virtualdead in svl
    
    Change-Id: Idbb5d0a633f12d5813561a2ad8aed46ec6d67c48
    Reviewed-on: https://gerrit.libreoffice.org/79639
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/virtualdead.results b/compilerplugins/clang/virtualdead.results
index b8b5fa873949..bd25262008c9 100644
--- a/compilerplugins/clang/virtualdead.results
+++ b/compilerplugins/clang/virtualdead.results
@@ -91,12 +91,6 @@ include/svl/svdde.hxx:239
 include/svl/svdde.hxx:241
     _Bool DdeTopic::MakeItem(const class rtl::OUString &,)
     0
-include/svl/svdde.hxx:244
-    _Bool DdeTopic::StartAdviseLoop()
-    0
-include/svl/undo.hxx:168
-    void SfxUndoListener::undoManagerDying()
-    empty
 include/svtools/unoevent.hxx:199
     unsigned short SvEventDescriptor::getMacroItemWhich()const
     108
diff --git a/framework/source/fwe/helper/undomanagerhelper.cxx b/framework/source/fwe/helper/undomanagerhelper.cxx
index 411d32ed7b67..080b70eef4c6 100644
--- a/framework/source/fwe/helper/undomanagerhelper.cxx
+++ b/framework/source/fwe/helper/undomanagerhelper.cxx
@@ -248,7 +248,6 @@ namespace framework
         virtual void listActionEntered( const OUString& i_comment ) override;
         virtual void listActionLeft( const OUString& i_comment ) override;
         virtual void listActionCancelled() override;
-        virtual void undoManagerDying() override;
 
         // public operations
         void disposing();
@@ -826,11 +825,6 @@ namespace framework
         notify( OUString(), &XUndoManagerListener::cancelledContext );
     }
 
-    void UndoManagerHelper_Impl::undoManagerDying()
-    {
-        // TODO: do we need to care? Or is this the responsibility of our owner?
-    }
-
     //= UndoManagerHelper
 
     UndoManagerHelper::UndoManagerHelper( IUndoManagerImplementation& i_undoManagerImpl )
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx
index 22e180570268..272139802398 100644
--- a/include/svl/undo.hxx
+++ b/include/svl/undo.hxx
@@ -165,7 +165,6 @@ public:
     virtual void listActionEntered( const OUString& i_comment ) = 0;
     virtual void listActionLeft( const OUString& i_comment ) = 0;
     virtual void listActionCancelled() = 0;
-    virtual void undoManagerDying() = 0;
 
 protected:
     ~SfxUndoListener() {}
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index e3c78895a8fe..5d84ae1e0378 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -345,14 +345,6 @@ SfxUndoManager::SfxUndoManager( size_t nMaxUndoActionCount )
 
 SfxUndoManager::~SfxUndoManager()
 {
-    UndoListeners aListenersCopy;
-    {
-        UndoManagerGuard aGuard( *m_xData );
-        aListenersCopy = m_xData->aListeners;
-    }
-
-    ::std::for_each( aListenersCopy.begin(), aListenersCopy.end(),
-        NotifyUndoListener( &SfxUndoListener::undoManagerDying ) );
 }
 
 


More information about the Libreoffice-commits mailing list