diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-27 18:22:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-01 19:34:08 +0100 |
commit | 05d6dae5ebd172c6738dc8cd7c94b57f671f698e (patch) | |
tree | e21bb9218d09f52c0c700357ae814797657a6cea /include/framework | |
parent | ee7368f6289ffc46425e4f3db1f7b40b7e6e089e (diff) |
loplugin:refcounting in sfx2
Change-Id: Iba7b1be688f1a7c1b0947c2423cc1965362386b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111682
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/framework')
-rw-r--r-- | include/framework/sfxhelperfunctions.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/framework/sfxhelperfunctions.hxx b/include/framework/sfxhelperfunctions.hxx index 0fedd75d11f5..7a30899d97de 100644 --- a/include/framework/sfxhelperfunctions.hxx +++ b/include/framework/sfxhelperfunctions.hxx @@ -22,6 +22,7 @@ #include <framework/fwkdllapi.h> #include <rtl/ustring.hxx> +#include <rtl/ref.hxx> namespace com::sun::star::frame { class XFrame; } namespace com::sun::star::uno { template <typename > class Reference; } @@ -31,13 +32,13 @@ namespace svt { class ToolboxController; } class StatusBar; class ToolBox; -typedef svt::ToolboxController* ( *pfunc_setToolBoxControllerCreator)( +typedef rtl::Reference<svt::ToolboxController> ( *pfunc_setToolBoxControllerCreator)( const css::uno::Reference< css::frame::XFrame >& rFrame, ToolBox* pToolbox, unsigned short nID, const OUString& aCommandURL ); -typedef svt::StatusbarController* ( *pfunc_setStatusBarControllerCreator)( +typedef rtl::Reference<svt::StatusbarController> ( *pfunc_setStatusBarControllerCreator)( const css::uno::Reference< css::frame::XFrame >& rFrame, StatusBar* pStatusBar, unsigned short nID, @@ -58,14 +59,14 @@ typedef bool ( *pfunc_isDockingWindowVisible)( namespace framework { FWK_DLLPUBLIC pfunc_setToolBoxControllerCreator SetToolBoxControllerCreator( pfunc_setToolBoxControllerCreator pSetToolBoxControllerCreator ); -FWK_DLLPUBLIC svt::ToolboxController* CreateToolBoxController( +FWK_DLLPUBLIC rtl::Reference<svt::ToolboxController> CreateToolBoxController( const css::uno::Reference< css::frame::XFrame >& rFrame, ToolBox* pToolbox, unsigned short nID, const OUString& aCommandURL ); FWK_DLLPUBLIC pfunc_setStatusBarControllerCreator SetStatusBarControllerCreator( pfunc_setStatusBarControllerCreator pSetStatusBarControllerCreator ); -FWK_DLLPUBLIC svt::StatusbarController* CreateStatusBarController( +FWK_DLLPUBLIC rtl::Reference<svt::StatusbarController> CreateStatusBarController( const css::uno::Reference< css::frame::XFrame >& rFrame, StatusBar* pStatusBar, unsigned short nID, |