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 /sw/source/uibase/fldui/fldmgr.cxx | |
parent | ffcfcd76d12a54e8a65a2b8d0ba7432d4c57f6ea (diff) |
convert sfxlink to enum class
Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab
Diffstat (limited to 'sw/source/uibase/fldui/fldmgr.cxx')
-rw-r--r-- | sw/source/uibase/fldui/fldmgr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index cfbdeae88759..18483c6fb05a 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -701,8 +701,8 @@ sal_uInt16 SwFldMgr::GetFormatId(sal_uInt16 nTypeId, sal_uLong nFormatId) const case TYP_DDEFLD: switch ( aSwFlds[ GetPos( nTypeId ) ].nFmtBegin + nFormatId ) { - case FMT_DDE_NORMAL: nId = sfx2::LINKUPDATE_ONCALL; break; - case FMT_DDE_HOT: nId = sfx2::LINKUPDATE_ALWAYS; break; + case FMT_DDE_NORMAL: nId = static_cast<sal_uInt16>(SfxLinkUpdateMode::ONCALL); break; + case FMT_DDE_HOT: nId = static_cast<sal_uInt16>(SfxLinkUpdateMode::ALWAYS); break; } break; } @@ -958,7 +958,7 @@ bool SwFldMgr::InsertFld( sCmd = sCmd.replaceFirst(OUString(' '), OUString(sfx2::cTokenSeparator), &nIndex); } - SwDDEFieldType aType( rData.sPar1, sCmd, (sal_uInt16) nFormatId ); + SwDDEFieldType aType( rData.sPar1, sCmd, static_cast<SfxLinkUpdateMode>(nFormatId) ); SwDDEFieldType* pTyp = static_cast<SwDDEFieldType*>( pCurShell->InsertFldType( aType ) ); pFld = new SwDDEField( pTyp ); break; |