summaryrefslogtreecommitdiff
path: root/editeng/source/uno/unofield.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 10:34:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-16 14:43:04 +0200
commit70e552065339f1f7ab14f991f3e840b5461e609e (patch)
treea4fbcac77284e42ba6f206dd307428718a69110d /editeng/source/uno/unofield.cxx
parent03c77bbbed1e275bede8c6b2ca924eb3647d6f90 (diff)
convert SvxURLFormat to scoped enum
Change-Id: Ie2199cf0bcfb6d649f8aa33325ab645b18e7c000 Reviewed-on: https://gerrit.libreoffice.org/42343 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/uno/unofield.cxx')
-rw-r--r--editeng/source/uno/unofield.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index ec4e45ad93f2..5642daf850e8 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -263,7 +263,7 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw()
break;
case text::textfield::Type::URL:
- mpImpl->mnInt16 = SVXURLFORMAT_REPR;
+ mpImpl->mnInt16 = static_cast<sal_uInt16>(SvxURLFormat::Repr);
break;
case text::textfield::Type::EXTENDED_FILE:
@@ -415,9 +415,10 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
break;
case text::textfield::Type::URL:
- pData = new SvxURLField( mpImpl->msString3, mpImpl->msString1, !mpImpl->msString1.isEmpty() ? SVXURLFORMAT_REPR : SVXURLFORMAT_URL );
+ pData = new SvxURLField( mpImpl->msString3, mpImpl->msString1, !mpImpl->msString1.isEmpty() ? SvxURLFormat::Repr : SvxURLFormat::Url );
static_cast<SvxURLField*>(pData)->SetTargetFrame( mpImpl->msString2 );
- if( mpImpl->mnInt16 >= SVXURLFORMAT_APPDEFAULT && mpImpl->mnInt16 <= SVXURLFORMAT_REPR )
+ if( static_cast<SvxURLFormat>(mpImpl->mnInt16) >= SvxURLFormat::AppDefault &&
+ static_cast<SvxURLFormat>(mpImpl->mnInt16) <= SvxURLFormat::Repr )
static_cast<SvxURLField*>(pData)->SetFormat( (SvxURLFormat)mpImpl->mnInt16 );
break;