From b3e4ba69b70a30bbcc32ac59ce90e2eda2bc76de Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Sep 2020 21:23:13 +0200 Subject: convert IMAP_FORMAT to scoped enum Change-Id: I58090ced672267614ade2e3e81e6264d01b77901 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102405 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/dialog/imapdlg.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index 8c01116825bd..0a16d670002c 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -383,7 +383,7 @@ void SvxIMapDlg::DoOpen() if( pIStm ) { - aLoadIMap.Read( *pIStm, IMAP_FORMAT_DETECT ); + aLoadIMap.Read( *pIStm, IMapFormat::Detect ); if( pIStm->GetError() ) { @@ -421,21 +421,21 @@ bool SvxIMapDlg::DoSave() { const OUString aFilter( aDlg.GetCurrentFilter() ); OUString aExt; - sal_uLong nFormat; + IMapFormat nFormat; if ( aFilter == aBinFilter ) { - nFormat = IMAP_FORMAT_BIN; + nFormat = IMapFormat::Binary; aExt = "sip"; } else if ( aFilter == aCERNFilter ) { - nFormat = IMAP_FORMAT_CERN; + nFormat = IMapFormat::CERN; aExt = "map"; } else if ( aFilter == aNCSAFilter ) { - nFormat = IMAP_FORMAT_NCSA; + nFormat = IMapFormat::NCSA; aExt = "map"; } else -- cgit