From 4e24efb563cbe6fec4185b4f7ec3755b2fc05b6b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Nov 2022 18:38:10 +0200 Subject: tdf#54857 elide more dynamic_cast add a helper, following the same style as the ones in sw/ Change-Id: I13c673bba5ff47df6beef9d90c200e5801030cf0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142119 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/svdobj.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 8ca06a36006c..0f53f15ab5f6 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -41,6 +41,7 @@ class SfxBroadcaster; class AutoTimer; +class E3dScene; class OutlinerParaObject; class Outliner; class SdrOutliner; @@ -996,6 +997,10 @@ private: SdrObject( const SdrObject& ) = delete; }; +SVXCORE_DLLPUBLIC E3dScene* DynCastE3dScene(SdrObject*); +inline const E3dScene* DynCastE3dScene(const SdrObject* p) { return DynCastE3dScene(const_cast(p)); } + + struct SdrObjCreatorParams { SdrInventor nInventor; -- cgit