diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-27 08:55:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-27 08:56:38 +0200 |
commit | 271c6b360511760336c78e6fbbacb520bb9be911 (patch) | |
tree | 360eb8462f849c29194d62f1c24a99f8c663507f /sfx2 | |
parent | c22ec49de497fd65b4dac901d6bc1f06d5a9a3c7 (diff) |
inline SvBaseLinkRef typedef
Change-Id: I0684db21c260e38d1d2e32eb5924cf7e25212b4d
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/appl/linksrc.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index d56c276e005f..a0f60fab23a6 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -74,7 +74,7 @@ LinkManager::~LinkManager() { for( size_t n = 0; n < aLinkTbl.size(); ++n) { - SvBaseLinkRef* pTmp = aLinkTbl[ n ]; + tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ]; if( pTmp->Is() ) { (*pTmp)->Disconnect(); @@ -111,7 +111,7 @@ void LinkManager::Remove( SvBaseLink *pLink ) bool bFound = false; for( size_t n = 0; n < aLinkTbl.size(); ) { - SvBaseLinkRef* pTmp = aLinkTbl[ n ]; + tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ]; if( pLink == *pTmp ) { (*pTmp)->Disconnect(); @@ -143,7 +143,7 @@ void LinkManager::Remove( size_t nPos, size_t nCnt ) for( size_t n = nPos; n < nPos + nCnt; ++n) { - SvBaseLinkRef* pTmp = aLinkTbl[ n ]; + tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ]; if( pTmp->Is() ) { (*pTmp)->Disconnect(); @@ -160,7 +160,7 @@ bool LinkManager::Insert( SvBaseLink* pLink ) { for( size_t n = 0; n < aLinkTbl.size(); ++n ) { - SvBaseLinkRef* pTmp = aLinkTbl[ n ]; + tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ]; if( !pTmp->Is() ) { delete pTmp; @@ -170,7 +170,7 @@ bool LinkManager::Insert( SvBaseLink* pLink ) return false; // No duplicate links inserted } - SvBaseLinkRef* pTmp = new SvBaseLinkRef( pLink ); + tools::SvRef<SvBaseLink>* pTmp = new tools::SvRef<SvBaseLink>( pLink ); pLink->SetLinkManager( this ); aLinkTbl.push_back( pTmp ); return true; diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index fde1879a9439..7b1359f5246f 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -69,10 +69,10 @@ static void StartTimer( SvLinkSourceTimer ** ppTimer, SvLinkSource * pOwner, struct SvLinkSource_Entry_Impl { - SvBaseLinkRef xSink; - OUString aDataMimeType; - sal_uInt16 nAdviseModes; - bool bIsDataSink; + tools::SvRef<SvBaseLink> xSink; + OUString aDataMimeType; + sal_uInt16 nAdviseModes; + bool bIsDataSink; SvLinkSource_Entry_Impl( SvBaseLink* pLink, const OUString& rMimeType, sal_uInt16 nAdvMode ) diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 421abc7c1b1a..b956625cbdbd 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -569,7 +569,7 @@ ImplDdeItem::~ImplDdeItem() { bIsInDTOR = true; // So that no-one gets the idea to delete the pointer when Disconnecting! - SvBaseLinkRef aRef( pLink ); + tools::SvRef<SvBaseLink> aRef( pLink ); aRef->Disconnect(); } @@ -625,7 +625,7 @@ void ImplDdeItem::AdviseLoop( bool bOpen ) { // So that no-one gets the idea to delete the pointer // when Disconnecting! - SvBaseLinkRef aRef( pLink ); + tools::SvRef<SvBaseLink> aRef( pLink ); aRef->Disconnect(); } } |