diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-12 16:25:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 18:13:51 +0000 |
commit | d60722e29a0dde6282915188e5ff7e24890a14d3 (patch) | |
tree | f69b4c7e4b4abb44cbbfd3235a3136dff833a386 /sc/source/ui/app/transobj.cxx | |
parent | d4d046bb9c5d17cdd432b362c38914cc7b0a75f1 (diff) |
XUnoTunnel->dynamic_cast in TransferableHelper
which leads us to find that we can skip all the dynamic_cast'ing
altogether in SwView_Impl
Change-Id: I8914f78df6bfdd743df370c0017d5b8521863594
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145483
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index a81e4149956e..3bba033d28e7 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -198,7 +198,7 @@ ScTransferObj::~ScTransferObj() ScTransferObj* ScTransferObj::GetOwnClipboard(const uno::Reference<datatransfer::XTransferable2>& xTransferable) { - return comphelper::getFromUnoTunnel<ScTransferObj>(xTransferable); + return dynamic_cast<ScTransferObj*>(xTransferable.get()); } void ScTransferObj::AddSupportedFormats() @@ -903,16 +903,4 @@ void ScTransferObj::StripRefs( ScDocument& rDoc, } } -const css::uno::Sequence< sal_Int8 >& ScTransferObj::getUnoTunnelId() -{ - static const comphelper::UnoIdInit theScTransferUnoTunnelId; - return theScTransferUnoTunnelId.getSeq(); -} - -sal_Int64 SAL_CALL ScTransferObj::getSomething( const css::uno::Sequence< sal_Int8 >& rId ) -{ - return comphelper::getSomethingImpl( - rId, this, comphelper::FallbackToGetSomethingOf<TransferDataContainer>{}); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |