diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-23 14:23:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 09:36:57 +0200 |
commit | 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 (patch) | |
tree | 2046f70f5d2f47141267d47c192998228e8d41c2 /sfx2/source/appl/linkmgr2.cxx | |
parent | ffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff) |
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sfx2/source/appl/linkmgr2.cxx')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 9d910a92beff..65be6e6d74c3 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -179,7 +179,7 @@ bool LinkManager::Insert( SvBaseLink* pLink ) bool LinkManager::InsertLink( SvBaseLink * pLink, sal_uInt16 nObjType, - sal_uInt16 nUpdateMode, + SfxLinkUpdateMode nUpdateMode, const OUString* pName ) { // This First @@ -454,7 +454,7 @@ void LinkManager::LinkServerShell(const OUString& rPath, SfxObjectShell& rServer rLink.SetObj(pSrvSrc); pSrvSrc->AddDataAdvise( &rLink, aFl.MimeType, - sfx2::LINKUPDATE_ONCALL == rLink.GetUpdateMode() ? ADVISEMODE_ONLYONCE : 0); + SfxLinkUpdateMode::ONCALL == rLink.GetUpdateMode() ? ADVISEMODE_ONLYONCE : 0); } } @@ -479,7 +479,7 @@ bool LinkManager::InsertFileLink( } OUString aCmd = aBuf.makeStringAndClear(); - return InsertLink(&rLink, nFileType, sfx2::LINKUPDATE_ONCALL, &aCmd); + return InsertLink(&rLink, nFileType, SfxLinkUpdateMode::ONCALL, &aCmd); } // A transfer is aborted, so cancel all download media @@ -645,7 +645,7 @@ bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink ) pLink->SetObj( pNewSrc ); pNewSrc->AddDataAdvise( pLink, aFl.MimeType, - sfx2::LINKUPDATE_ONCALL == pLink->GetUpdateMode() + SfxLinkUpdateMode::ONCALL == pLink->GetUpdateMode() ? ADVISEMODE_ONLYONCE : 0 ); return true; |