summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/transobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r--sc/source/ui/app/transobj.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index a9bc88b03e83..9a3d12059945 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -928,14 +928,8 @@ const css::uno::Sequence< sal_Int8 >& ScTransferObj::getUnoTunnelId()
sal_Int64 SAL_CALL ScTransferObj::getSomething( const css::uno::Sequence< sal_Int8 >& rId )
{
- sal_Int64 nRet;
- if( comphelper::isUnoTunnelId<ScTransferObj>(rId) )
- {
- nRet = reinterpret_cast< sal_Int64 >( this );
- }
- else
- nRet = TransferDataContainer::getSomething(rId);
- return nRet;
+ return comphelper::getSomethingImpl(
+ rId, this, comphelper::FallbackToGetSomethingOf<TransferDataContainer>{});
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */