diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-23 13:53:42 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-24 06:54:06 +0000 |
commit | 111de438ea3e512a541281dc0716cc728ea8d152 (patch) | |
tree | 2c9ca866e79ed0cfc9299e553a87239345c515a6 /include | |
parent | d3f21849ec8580fdb59a1f0b35453657f4050e0f (diff) |
remove some manual ref-counting
triggered when I noticed a class doing acquire() in the constructor and
then release() in the destructor.
found mostly by
git grep -n -B5 -e '->release()'
Change-Id: Ie1abeaed75c1f861df185e3bde680272dbadc97f
Reviewed-on: https://gerrit.libreoffice.org/25363
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/accessiblewrapper.hxx | 3 | ||||
-rw-r--r-- | include/framework/interaction.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/brokenpackageint.hxx | 4 | ||||
-rw-r--r-- | include/ucbhelper/proxydecider.hxx | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/include/comphelper/accessiblewrapper.hxx b/include/comphelper/accessiblewrapper.hxx index 3b808724f933..e3aa2feff03b 100644 --- a/include/comphelper/accessiblewrapper.hxx +++ b/include/comphelper/accessiblewrapper.hxx @@ -156,7 +156,8 @@ namespace comphelper css::uno::Reference< css::accessibility::XAccessible > m_xParentAccessible; - OWrappedAccessibleChildrenManager* m_pChildMapper; // for mapping children from our inner context to our callers + css::uno::Reference<OWrappedAccessibleChildrenManager> + m_xChildMapper; // for mapping children from our inner context to our callers protected: /** ctor diff --git a/include/framework/interaction.hxx b/include/framework/interaction.hxx index a57b3edc0e28..ab7889c294ea 100644 --- a/include/framework/interaction.hxx +++ b/include/framework/interaction.hxx @@ -60,7 +60,7 @@ namespace framework{ class RequestFilterSelect_Impl; class FWE_DLLPUBLIC RequestFilterSelect { - RequestFilterSelect_Impl* pImp; + css::uno::Reference<RequestFilterSelect_Impl> mxImpl; public: RequestFilterSelect( const OUString& sURL ); diff --git a/include/sfx2/brokenpackageint.hxx b/include/sfx2/brokenpackageint.hxx index 68cb33022608..ddfe7157dbf2 100644 --- a/include/sfx2/brokenpackageint.hxx +++ b/include/sfx2/brokenpackageint.hxx @@ -29,7 +29,7 @@ class RequestPackageReparation_Impl; class SFX2_DLLPUBLIC RequestPackageReparation { - RequestPackageReparation_Impl* pImp; + css::uno::Reference<RequestPackageReparation_Impl> mxImpl; public: RequestPackageReparation( const OUString& aName ); ~RequestPackageReparation(); @@ -40,7 +40,7 @@ public: class NotifyBrokenPackage_Impl; class SFX2_DLLPUBLIC NotifyBrokenPackage { - NotifyBrokenPackage_Impl* pImp; + css::uno::Reference<NotifyBrokenPackage_Impl> mxImpl; public: NotifyBrokenPackage( const OUString& aName ); ~NotifyBrokenPackage(); diff --git a/include/ucbhelper/proxydecider.hxx b/include/ucbhelper/proxydecider.hxx index aa19d483fcc9..4bb62f13c5ff 100644 --- a/include/ucbhelper/proxydecider.hxx +++ b/include/ucbhelper/proxydecider.hxx @@ -127,7 +127,7 @@ public: sal_Int32 nPort ) const; private: - proxydecider_impl::InternetProxyDecider_Impl * m_pImpl; + css::uno::Reference<proxydecider_impl::InternetProxyDecider_Impl> m_xImpl; }; } // namespace ucbhelper |