diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-25 15:17:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-06 10:59:41 +0200 |
commit | dc28e90d200a839d4017d548217ee5ce8a23f848 (patch) | |
tree | a6ae872fb19a046292d96d280da286a20a397def /starmath | |
parent | 465356ecc81e23016b4289ab16e99084f2a7b84e (diff) |
fdo#84938: convert IMPORT_ constants to 'enum class'
Change-Id: Idaa8f07c62b3ba93c27ca5fe286720254baac10d
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 8 | ||||
-rw-r--r-- | starmath/source/mathmlimport.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 95a89b4c4f8d..45510c807448 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -397,7 +397,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent( SmXMLImport::SmXMLImport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, - OUString const & implementationName, sal_uInt16 nImportFlags) + OUString const & implementationName, SvXMLImportFlags nImportFlags) : SvXMLImport( xContext, implementationName, nImportFlags ), pPresLayoutElemTokenMap(0), pPresLayoutAttrTokenMap(0), @@ -439,7 +439,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImport_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport(comphelper::getComponentContext(rSMgr), SmXMLImport_getImplementationName(), IMPORT_ALL); + return (cppu::OWeakObject*)new SmXMLImport(comphelper::getComponentContext(rSMgr), SmXMLImport_getImplementationName(), SvXMLImportFlags::ALL); } @@ -461,7 +461,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportMeta_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportMeta_getImplementationName(), IMPORT_META ); + return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportMeta_getImplementationName(), SvXMLImportFlags::META ); } @@ -483,7 +483,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportSettings_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportSettings_getImplementationName(), IMPORT_SETTINGS ); + return (cppu::OWeakObject*)new SmXMLImport( comphelper::getComponentContext(rSMgr), SmXMLImportSettings_getImplementationName(), SvXMLImportFlags::SETTINGS ); } sal_Int64 SAL_CALL SmXMLImport::getSomething( diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index 4bcf594c7827..0a1e700759c2 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -88,7 +88,7 @@ class SmXMLImport : public SvXMLImport public: SmXMLImport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, - OUString const & implementationName, sal_uInt16 nImportFlags); + OUString const & implementationName, SvXMLImportFlags nImportFlags); virtual ~SmXMLImport() throw (); // XUnoTunnel |