summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-20 15:18:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-20 18:21:50 +0200
commitebdf70cc68989d209965768edc8a3bdf27543c48 (patch)
treed89afb49072248692cc355bf24402fa6d66898ad /sw/source/ui/config
parente15297a72e3483a6e5641253920e71f6e4570c28 (diff)
convert SwFieldTypesEnum to scoped enum
clamp it to sal_uInt16 since we convert it that type when passing it via SfxItemSet Change-Id: I4b7bd4ba5e19015af357d5a81a629239451d71e4 Reviewed-on: https://gerrit.libreoffice.org/79289 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optload.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index b932724bd5b2..0af4778387fe 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -495,11 +495,11 @@ SwCaptionOptPage::SwCaptionOptPage(TabPageParent pParent, const SfxItemSet& rSet
::FillCharStyleListBox( *m_xCharStyleLB, pSh->GetView().GetDocShell(), true, true );
}
- const sal_uInt16 nCount = pMgr->GetFormatCount(TYP_SEQFLD, false);
+ const sal_uInt16 nCount = pMgr->GetFormatCount(SwFieldTypesEnum::Sequence, false);
for ( sal_uInt16 i = 0; i < nCount; ++i )
{
- const sal_uInt16 nFormatId = pMgr->GetFormatId(TYP_SEQFLD, i);
- m_xFormatBox->append(OUString::number(nFormatId), pMgr->GetFormatStr(TYP_SEQFLD, i));
+ const sal_uInt16 nFormatId = pMgr->GetFormatId(SwFieldTypesEnum::Sequence, i);
+ m_xFormatBox->append(OUString::number(nFormatId), pMgr->GetFormatStr(SwFieldTypesEnum::Sequence, i));
if (nFormatId == nSelFormat)
m_xFormatBox->set_active(i);
}