diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-16 14:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-16 13:25:38 +0000 |
commit | 6da5ed6d7cea0917047dca92a9e32a7eb5e85ad6 (patch) | |
tree | 78a8b9904f238dfad21ebd358c19384c8feac3f2 /sw/source/filter/basflt/iodetect.cxx | |
parent | 1ba11723b89497f045cc10d548eb4228986af608 (diff) |
convert ReaderWriterEnum to scoped enum
Change-Id: I6af2784857c835a823218ba88f4bf65a19a0d253
Reviewed-on: https://gerrit.libreoffice.org/28959
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/basflt/iodetect.cxx')
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index 5b6e92ff8a91..2fc3c0909b1c 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -24,6 +24,7 @@ #include <svtools/parhtml.hxx> #include <tools/urlobj.hxx> #include <unotools/moduleoptions.hxx> +#include <o3tl/enumarray.hxx> using namespace ::com::sun::star; @@ -33,7 +34,7 @@ static bool IsDocShellRegistered() return SvtModuleOptions().IsWriter(); } -SwIoDetect aFilterDetect[] = +o3tl::enumarray<ReaderWriterType, SwIoDetect> aFilterDetect = { SwIoDetect( FILTER_RTF ), SwIoDetect( FILTER_BAS ), @@ -47,6 +48,11 @@ SwIoDetect aFilterDetect[] = SwIoDetect( FILTER_TEXT ) }; +SwIoDetect& GetSwIoDetect(ReaderWriterType eType) +{ + return aFilterDetect[eType]; +} + const OUString SwIoSystem::GetSubStorageName( const SfxFilter& rFltr ) { // for StorageFilters also set the SubStorageName |