From 359201c9b4ad26fd445688de2c9a1d15f253d37d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Sep 2017 09:55:22 +0200 Subject: convert SvxAuthorType to scoped enum Change-Id: I990eb35c883ddd417751487435556f584e956374 Reviewed-on: https://gerrit.libreoffice.org/42312 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/items/flditem.cxx | 2 +- editeng/source/uno/unofield.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng/source') 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& 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(pData)->GetFormatted(); mpImpl->mnInt16 = sal::static_int_cast< sal_Int16 >( static_cast(pData)->GetFormat()); - mpImpl->mbBoolean1 = static_cast(pData)->GetType() == SVXAUTHORTYPE_FIX; + mpImpl->mbBoolean1 = static_cast(pData)->GetType() == SvxAuthorType::Fix; mpImpl->mbBoolean2 = static_cast(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 ) { -- cgit v1.2.3