diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-09-10 21:23:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-11 09:08:47 +0200 |
commit | b3e4ba69b70a30bbcc32ac59ce90e2eda2bc76de (patch) | |
tree | 12453ac9bdf40752a5cf9d07e7c2d69fbcb9f20a /svx | |
parent | 72b5478390457fa2dcf90e310bb3903e910ca8f2 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/imapdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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 |