Kaydet (Commit) 7185e84b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1266510 Useless call

Change-Id: I4e3127243b103ea77a56aa9cfbcb61793a644ce3
üst 80c0d3de
...@@ -1106,7 +1106,6 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem* ...@@ -1106,7 +1106,6 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem*
SfxDispatcher &rDispatcher = *pDispatcher; SfxDispatcher &rDispatcher = *pDispatcher;
rDispatcher.Flush(); rDispatcher.Flush();
rDispatcher.GetFrame(); // -Wall is this required???
// get SlotServer (Slot+ShellLevel) and Shell from cache // get SlotServer (Slot+ShellLevel) and Shell from cache
::boost::scoped_ptr<SfxStateCache> xCache; ::boost::scoped_ptr<SfxStateCache> xCache;
......
...@@ -845,15 +845,15 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) ...@@ -845,15 +845,15 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
} }
} }
void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet )
{ {
SfxObjectShell* pSh = GetObjectShell(); SfxObjectShell* pSh = GetObjectShell();
if ( !pSh ) if ( !pSh )
{
// I'm just on reload and am yielding myself ... // I'm just on reload and am yielding myself ...
return; return;
}
GetFrame().GetParentFrame();
SfxWhichIter aIter( rSet ); SfxWhichIter aIter( rSet );
for ( sal_uInt16 nWhich = aIter.FirstWhich(); nWhich; nWhich = aIter.NextWhich() ) for ( sal_uInt16 nWhich = aIter.FirstWhich(); nWhich; nWhich = aIter.NextWhich() )
{ {
...@@ -925,8 +925,6 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) ...@@ -925,8 +925,6 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet )
} }
} }
void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq ) void SfxViewFrame::ExecHistory_Impl( SfxRequest &rReq )
{ {
// Is there an Undo-Manager on the top Shell? // Is there an Undo-Manager on the top Shell?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment