summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/cellfml.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-06 13:33:15 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-03-07 08:42:04 +0000
commit08f5355dee375503167989e21271a4601449a257 (patch)
tree051ae7e50b005417f77ee0fd909fc3c27cbb3bbf /sw/source/core/fields/cellfml.cxx
parent14f982775cdff2e3779f9a9bcbc0341247ed90aa (diff)
convert RES_FIELDS to scoped enum
and rename to SwFieldIds Change-Id: I50d2b7550f68b4b020ffc1603f931c671c8e1de6 Reviewed-on: https://gerrit.libreoffice.org/34924 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields/cellfml.cxx')
-rw-r--r--sw/source/core/fields/cellfml.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index d45c070b5bea..0c0d96c9bb25 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -162,13 +162,13 @@ double SwTableBox::GetValue( SwTableCalcPara& rCalcPara ) const
const SwField* pField = pTextField->GetFormatField().GetField();
switch ( pField->GetTyp()->Which() )
{
- case RES_SETEXPFLD:
+ case SwFieldIds::SetExp:
nRet = static_cast<const SwSetExpField*>(pField)->GetValue();
break;
- case RES_USERFLD:
+ case SwFieldIds::User:
nRet = static_cast<const SwUserField*>(pField)->GetValue();
break;
- case RES_TABLEFLD:
+ case SwFieldIds::Table:
{
SwTableField* pTableField = const_cast<SwTableField*>(static_cast<const SwTableField*>(pField));
if( !pTableField->IsValid() )
@@ -183,11 +183,11 @@ double SwTableBox::GetValue( SwTableCalcPara& rCalcPara ) const
}
break;
- case RES_DATETIMEFLD:
+ case SwFieldIds::DateTime:
nRet = static_cast<const SwDateTimeField*>( pField )->GetValue();
break;
- case RES_JUMPEDITFLD:
+ case SwFieldIds::JumpEdit:
//JP 14.09.98: Bug 56112 - placeholder never have the right content!
nRet = 0;
break;