summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-12 16:25:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 18:13:51 +0000
commitd60722e29a0dde6282915188e5ff7e24890a14d3 (patch)
treef69b4c7e4b4abb44cbbfd3235a3136dff833a386 /starmath
parentd4d046bb9c5d17cdd432b362c38914cc7b0a75f1 (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 'starmath')
-rw-r--r--starmath/source/view.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index bdc8b0729335..45059c9816b9 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1717,7 +1717,7 @@ void SmViewShell::Execute(SfxRequest& rReq)
Reference< datatransfer::XTransferable > xTrans( GetDoc()->GetModel(), uno::UNO_QUERY );
if( xTrans.is() )
{
- auto pTrans = comphelper::getFromUnoTunnel<TransferableHelper>(xTrans);
+ auto pTrans = dynamic_cast<TransferableHelper*>(xTrans.get());
if (pTrans)
{
SmEditWindow *pEditWin = GetEditWindow();