diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-19 15:53:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-20 11:38:55 +0100 |
commit | d8ed3bda462b351d2b98ec57cfdb879e0eec0010 (patch) | |
tree | 10d3696813b853e6b90cf045d89b9203206004b9 /include/svx/unoapi.hxx | |
parent | drop some unneeded includes (diff) | |
download | core-d8ed3bda462b351d2b98ec57cfdb879e0eec0010.tar.gz core-d8ed3bda462b351d2b98ec57cfdb879e0eec0010.zip |
loplugin:refcounting in svx
Change-Id: I79afd219a29ad176ce72020579d2b29a0b3ec09d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111220
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/unoapi.hxx')
-rw-r--r-- | include/svx/unoapi.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/unoapi.hxx b/include/svx/unoapi.hxx index 693a15646497..3297eeaf6bba 100644 --- a/include/svx/unoapi.hxx +++ b/include/svx/unoapi.hxx @@ -22,6 +22,7 @@ #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> +#include <rtl/ref.hxx> #include <sal/types.h> #include <svx/svxdllapi.h> #include <tools/fldunit.hxx> @@ -40,7 +41,7 @@ enum class SdrInventor : sal_uInt32; * * @throws css::uno::RuntimeException */ -SVXCORE_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor(sal_uInt16 nType, SdrInventor nInventor, OUString const & referer); +SVXCORE_DLLPUBLIC rtl::Reference<SvxShape> CreateSvxShapeByTypeAndInventor(sal_uInt16 nType, SdrInventor nInventor, OUString const & referer); /** Returns a StarOffice API wrapper for the given SdrObject */ SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw (); |