summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 09:55:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 11:27:50 +0200
commit359201c9b4ad26fd445688de2c9a1d15f253d37d (patch)
treef5e10b077d8965a88d4bd3646217f1bfbfac2f8b /editeng/source
parent8c3b410ae36d3d82e455180c6acbf23f434d6108 (diff)
convert SvxAuthorType to scoped enum
Change-Id: I990eb35c883ddd417751487435556f584e956374 Reviewed-on: https://gerrit.libreoffice.org/42312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/items/flditem.cxx2
-rw-r--r--editeng/source/uno/unofield.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 05146abce0e4..bf9baf91d4ce 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -179,7 +179,7 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe
// #92009# pass fixed attribute to constructor
SvxAuthorField* pData = new SvxAuthorField(
- aFirstName, aLastName, OUString(), bIsFixed ? SVXAUTHORTYPE_FIX : SVXAUTHORTYPE_VAR);
+ aFirstName, aLastName, OUString(), bIsFixed ? SvxAuthorType::Fix : SvxAuthorType::Var);
if (!bIsFixed)
{
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 985dbddb3306..94bef5cdae11 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -356,7 +356,7 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > const & xAn
mpImpl->msString2 = static_cast<const SvxAuthorField*>(pData)->GetFormatted();
mpImpl->mnInt16 = sal::static_int_cast< sal_Int16 >(
static_cast<const SvxAuthorField*>(pData)->GetFormat());
- mpImpl->mbBoolean1 = static_cast<const SvxAuthorField*>(pData)->GetType() == SVXAUTHORTYPE_FIX;
+ mpImpl->mbBoolean1 = static_cast<const SvxAuthorField*>(pData)->GetType() == SvxAuthorType::Fix;
mpImpl->mbBoolean2 = static_cast<const SvxAuthorField*>(pData)->GetFormat() != SvxAuthorFormat::ShortName;
break;
@@ -474,7 +474,7 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
// #92009# pass fixed attribute to constructor
pData = new SvxAuthorField( aFirstName, aLastName, "",
- mpImpl->mbBoolean1 ? SVXAUTHORTYPE_FIX : SVXAUTHORTYPE_VAR );
+ mpImpl->mbBoolean1 ? SvxAuthorType::Fix : SvxAuthorType::Var );
if( !mpImpl->mbBoolean2 )
{