diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 14:52:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:36 +0200 |
commit | bd5ceabb533a3af7e4140e195de885bf23f650bf (patch) | |
tree | 5178589f4616f7d5da32e88eb09f3a73279f63ff /sfx2/source/appl/linksrc.cxx | |
parent | 0d34f4ac9b17348d7956285c6cefb28bea2537b6 (diff) |
loplugin:unuseddefaultparam in sfx2
Change-Id: I37afde801a6468c79259fe51acbdea0614c2c8c5
Diffstat (limited to 'sfx2/source/appl/linksrc.cxx')
-rw-r--r-- | sfx2/source/appl/linksrc.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index eaea196c80f4..7e90802a5ffc 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -397,13 +397,11 @@ void SvLinkSource::RemoveConnectAdvise( SvBaseLink * pLink ) } } -bool SvLinkSource::HasDataLinks( const SvBaseLink* pLink ) const +bool SvLinkSource::HasDataLinks() const { bool bRet = false; - const SvLinkSource_Entry_Impl* p; for( sal_uInt16 n = 0, nEnd = pImpl->aArr.size(); n < nEnd; ++n ) - if( ( p = pImpl->aArr[ n ] )->bIsDataSink && - ( !pLink || &p->xSink == pLink ) ) + if( pImpl->aArr[ n ]->bIsDataSink ) { bRet = true; break; |