From 23e0b0ba4b67a402a89b3752ae5aede1c5249cc8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Mar 2015 14:23:01 +0200 Subject: convert sfxlink to enum class Change-Id: I4466af8d40e7860b20a26c5ccf2265ee40c5a9ab --- sw/source/uibase/fldui/fldmgr.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/fldui') 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(SfxLinkUpdateMode::ONCALL); break; + case FMT_DDE_HOT: nId = static_cast(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(nFormatId) ); SwDDEFieldType* pTyp = static_cast( pCurShell->InsertFldType( aType ) ); pFld = new SwDDEField( pTyp ); break; -- cgit