diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-11-01 18:38:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-01 19:53:23 +0100 |
commit | 4e24efb563cbe6fec4185b4f7ec3755b2fc05b6b (patch) | |
tree | b939ef5a2b3e4f09df7841d0b21d4da9dba8549b /include | |
parent | d2a6bcd6a9430cbd5522c1a0e367e422b679cfd3 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/svdobj.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
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<SdrObject*>(p)); } + + struct SdrObjCreatorParams { SdrInventor nInventor; |