summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-06-01 20:50:37 +0300
committerStephan Bergmann <sbergman@redhat.com>2019-06-03 09:32:50 +0200
commit09c657ebe69fe1c2516a10a4452996870f4237d2 (patch)
tree1e0d6154aa3674599994bd8a4a90e1e4a83af813 /svl
parent675a3928e1cab27cf310c316be65acdbb764ed65 (diff)
tdf#39593 use UNO3_GETIMPLEMENTATION* macros
Change-Id: I4e9af3b43a5baf19e100f42b3f37a2ade89ada5d Reviewed-on: https://gerrit.libreoffice.org/73320 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/numuno.cxx36
1 files changed, 1 insertions, 35 deletions
diff --git a/svl/source/numbers/numuno.cxx b/svl/source/numbers/numuno.cxx
index a7d3b7907ff4..4ac35a90f94b 100644
--- a/svl/source/numbers/numuno.cxx
+++ b/svl/source/numbers/numuno.cxx
@@ -18,8 +18,6 @@
*/
-#include <comphelper/servicehelper.hxx>
-
#include <svl/numuno.hxx>
#include "numfmuno.hxx"
#include <svl/zforlist.hxx>
@@ -87,38 +85,6 @@ uno::Reference<util::XNumberFormats> SAL_CALL SvNumberFormatsSupplierObj::getNum
// XUnoTunnel
-sal_Int64 SAL_CALL SvNumberFormatsSupplierObj::getSomething(
- const uno::Sequence<sal_Int8 >& rId )
-{
- if ( rId.getLength() == 16 &&
- 0 == memcmp( getUnoTunnelId().getConstArray(),
- rId.getConstArray(), 16 ) )
- {
- return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this));
- }
- return 0;
-}
-
-namespace
-{
- class theSvNumberFormatsSupplierObjUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSvNumberFormatsSupplierObjUnoTunnelId > {};
-}
-
-// static
-const uno::Sequence<sal_Int8>& SvNumberFormatsSupplierObj::getUnoTunnelId()
-{
- return theSvNumberFormatsSupplierObjUnoTunnelId::get().getSeq();
-}
-
-// static
-SvNumberFormatsSupplierObj* SvNumberFormatsSupplierObj::getImplementation(
- const uno::Reference<util::XNumberFormatsSupplier>& rObj )
-{
- SvNumberFormatsSupplierObj* pRet = nullptr;
- uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY);
- if (xUT.is())
- pRet = reinterpret_cast<SvNumberFormatsSupplierObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething( getUnoTunnelId() )));
- return pRet;
-}
+UNO3_GETIMPLEMENTATION_IMPL(SvNumberFormatsSupplierObj);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */