diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 14:08:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 14:08:29 +0000 |
commit | 7185e84b862cf486900a009b4ebfe3e0042fbc3e (patch) | |
tree | 7a13653021426686cd1f630cae32ae8a1b5debab /sfx2 | |
parent | 80c0d3de5c855386ccf079501f3d6d77babb81e1 (diff) |
coverity#1266510 Useless call
Change-Id: I4e3127243b103ea77a56aa9cfbcb61793a644ce3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index fe519483a4aa..466d8185c774 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1106,7 +1106,6 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem* SfxDispatcher &rDispatcher = *pDispatcher; rDispatcher.Flush(); - rDispatcher.GetFrame(); // -Wall is this required??? // get SlotServer (Slot+ShellLevel) and Shell from cache ::boost::scoped_ptr<SfxStateCache> xCache; diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 77a15b5a5e09..de07b92a20b3 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -845,15 +845,15 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) } } - void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) { SfxObjectShell* pSh = GetObjectShell(); if ( !pSh ) + { // I'm just on reload and am yielding myself ... return; + } - GetFrame().GetParentFrame(); SfxWhichIter aIter( rSet ); for ( sal_uInt16 nWhich = aIter.FirstWhich(); nWhich; nWhich = aIter.NextWhich() ) { @@ -925,8 +925,6 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) } } - - void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq ) { // Is there an Undo-Manager on the top Shell? |