diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-01 20:37:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-02 20:45:51 +0100 |
commit | 81cacf8dea7ca2fb7b0d6e86b36b9f9568ff849d (patch) | |
tree | a2209e5a269ea58265533182361e63de41422bef /toolkit/inc/controls | |
parent | 6c92ca3e04c68dff68345b71a5d01c1764a5ef35 (diff) |
loplugin:refcounting in toolkit
Change-Id: I7564951f3e3fdc0554de9a4af3833bc4f0facce0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111770
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/inc/controls')
-rw-r--r-- | toolkit/inc/controls/geometrycontrolmodel.hxx | 7 | ||||
-rw-r--r-- | toolkit/inc/controls/geometrycontrolmodel_impl.hxx | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/toolkit/inc/controls/geometrycontrolmodel.hxx b/toolkit/inc/controls/geometrycontrolmodel.hxx index 2d87f7cca2af..600e9592046f 100644 --- a/toolkit/inc/controls/geometrycontrolmodel.hxx +++ b/toolkit/inc/controls/geometrycontrolmodel.hxx @@ -27,6 +27,7 @@ #include <com/sun/star/util/XCloneable.hpp> #include <com/sun/star/script/XScriptEventsSupplier.hpp> #include <comphelper/IdPropArrayHelper.hxx> +#include <rtl/ref.hxx> namespace com::sun::star::resource { class XStringResourceResolver; } @@ -144,7 +145,7 @@ namespace com::sun::star { SAL_CALL getEvents( ) override; // XCloneable implementation - to be overwritten - virtual OGeometryControlModel_Base* createClone_Impl( + virtual rtl::Reference<OGeometryControlModel_Base> createClone_Impl( css::uno::Reference< css::util::XCloneable >& _rxAggregateInstance) = 0; // XComponent @@ -190,7 +191,7 @@ namespace com::sun::star { virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; // OGeometryControlModel_Base - virtual OGeometryControlModel_Base* createClone_Impl( + virtual rtl::Reference<OGeometryControlModel_Base> createClone_Impl( css::uno::Reference< css::util::XCloneable >& _rxAggregateInstance) override; // XTypeProvider @@ -230,7 +231,7 @@ namespace com::sun::star { virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; // OGeometryControlModel_Base - virtual OGeometryControlModel_Base* createClone_Impl( + virtual rtl::Reference<OGeometryControlModel_Base> createClone_Impl( css::uno::Reference< css::util::XCloneable >& _rxAggregateInstance) override; // XTypeProvider diff --git a/toolkit/inc/controls/geometrycontrolmodel_impl.hxx b/toolkit/inc/controls/geometrycontrolmodel_impl.hxx index 37a3983f6888..2ec8595dddf1 100644 --- a/toolkit/inc/controls/geometrycontrolmodel_impl.hxx +++ b/toolkit/inc/controls/geometrycontrolmodel_impl.hxx @@ -60,7 +60,7 @@ css::uno::Sequence<sal_Int8> SAL_CALL OGeometryControlModel<CONTROLMODEL>::getIm } template <class CONTROLMODEL> -OGeometryControlModel_Base* OGeometryControlModel<CONTROLMODEL>::createClone_Impl( +rtl::Reference<OGeometryControlModel_Base> OGeometryControlModel<CONTROLMODEL>::createClone_Impl( css::uno::Reference<css::util::XCloneable>& _rxAggregateInstance) { return new OGeometryControlModel<CONTROLMODEL>(_rxAggregateInstance); |