diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-15 21:46:13 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-06-17 08:56:36 +0200 |
commit | adc295a1b2e1f2ed43e7eb587fc89d7229e0f122 (patch) | |
tree | d045a927d1f88d2574bdef441bc1cbc0b81fd16b /xmloff/source | |
parent | d39846bfd16ad9873795149c370a95f42363bfd9 (diff) |
Add comphelper::getUnoTunnelImplementation template
Use it instead of classname::getImplementation from UNO3_GETIMPLEMENTATION_*
Change-Id: Ifcc8cfcd6369c576250008c76ce31ba79ea3a596
Reviewed-on: https://gerrit.libreoffice.org/74107
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/attrlist.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/core/attrlist.cxx b/xmloff/source/core/attrlist.cxx index 4d94dff3609f..c99086483d36 100644 --- a/xmloff/source/core/attrlist.cxx +++ b/xmloff/source/core/attrlist.cxx @@ -81,7 +81,7 @@ SvXMLAttributeList::SvXMLAttributeList( const uno::Reference< { SvXMLAttributeList* pImpl = - SvXMLAttributeList::getImplementation( rAttrList ); + comphelper::getUnoTunnelImplementation<SvXMLAttributeList>( rAttrList ); if( pImpl ) *m_pImpl = *(pImpl->m_pImpl); diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 7fac85974fd4..07e008af3e91 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -1066,7 +1066,7 @@ void SAL_CALL SvXMLImport::initialize( const uno::Sequence< uno::Any >& aArgumen uno::Any aAny = mxImportInfo->getPropertyValue(sPropName); aAny >>= xIfc; - StyleMap *pSMap = StyleMap::getImplementation( xIfc ); + StyleMap *pSMap = comphelper::getUnoTunnelImplementation<StyleMap>( xIfc ); if( pSMap ) { mpStyleMap = pSMap; diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 80f8511499b3..e4c382a10a38 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -211,7 +211,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( { // supplier must be SvNumberFormatsSupplierObj SvNumberFormatsSupplierObj* pObj = - SvNumberFormatsSupplierObj::getImplementation( rSupp ); + comphelper::getUnoTunnelImplementation<SvNumberFormatsSupplierObj>( rSupp ); if (pObj) pFormatter = pObj->GetNumberFormatter(); @@ -243,7 +243,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( { // supplier must be SvNumberFormatsSupplierObj SvNumberFormatsSupplierObj* pObj = - SvNumberFormatsSupplierObj::getImplementation( rSupp ); + comphelper::getUnoTunnelImplementation<SvNumberFormatsSupplierObj>( rSupp ); if (pObj) pFormatter = pObj->GetNumberFormatter(); diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index c621360c2fdf..5663983f35e7 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -1615,7 +1615,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert( css::uno::Reference< css::util { SvNumberFormatter* pFormatter = nullptr; SvNumberFormatsSupplierObj* pObj = - SvNumberFormatsSupplierObj::getImplementation( xFormatsSupplier ); + comphelper::getUnoTunnelImplementation<SvNumberFormatsSupplierObj>( xFormatsSupplier ); if (pObj) pFormatter = pObj->GetNumberFormatter(); @@ -2257,7 +2257,7 @@ SvXMLNumFmtHelper::SvXMLNumFmtHelper( SvNumberFormatter* pFormatter = nullptr; SvNumberFormatsSupplierObj* pObj = - SvNumberFormatsSupplierObj::getImplementation( rSupp ); + comphelper::getUnoTunnelImplementation<SvNumberFormatsSupplierObj>( rSupp ); if (pObj) pFormatter = pObj->GetNumberFormatter(); |