diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-26 16:02:39 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-31 06:25:45 +0000 |
commit | 0b23eec200c8c12db5778405df44f4bf8e38e4ad (patch) | |
tree | ee45856fe1781195c51f63835024865f283cdab8 /cui | |
parent | 88c03cd07a171e05c7fb4dcade8baa28e7c5a770 (diff) |
teach refcounting clang plugin about uno::Reference
uno::Reference is only allowed to used with classes that have a
::static_type member.
So convert all those places to rtl::Reference.
Maybe we need some LIBO_INTERNAL_ONLY constructors on rtl::Reference and
uno::Reference to make this a little smoother?
Change-Id: Icdcb35d71ca40a87b1dc474096776412adbfc7e3
Reviewed-on: https://gerrit.libreoffice.org/25516
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/cuigaldlg.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/optpath.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/optjava.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index 1e39b37171b8..5d81841f20be 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -265,7 +265,7 @@ class TPGalleryThemeProperties : public SfxTabPage bool bTakeAll; bool bSearchRecursive; - css::uno::Reference< ::svt::DialogClosedListener > xDialogListener; + rtl::Reference< ::svt::DialogClosedListener > xDialogListener; css::uno::Reference< css::media::XPlayer > xMediaPlayer; css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker; diff --git a/cui/source/inc/optpath.hxx b/cui/source/inc/optpath.hxx index 790da15a5814..59828a1611ba 100644 --- a/cui/source/inc/optpath.hxx +++ b/cui/source/inc/optpath.hxx @@ -48,7 +48,7 @@ private: VclPtr<svx::OptHeaderTabListBox> pPathBox; std::unique_ptr<OptPath_Impl> pImpl; - css::uno::Reference< ::svt::DialogClosedListener > xDialogListener; + rtl::Reference< ::svt::DialogClosedListener > xDialogListener; css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker; void ChangeCurrentEntry( const OUString& _rFolder ); diff --git a/cui/source/options/optjava.hxx b/cui/source/options/optjava.hxx index bee68940ce50..081509e91e3d 100644 --- a/cui/source/options/optjava.hxx +++ b/cui/source/options/optjava.hxx @@ -81,7 +81,7 @@ private: ::std::vector< JavaInfo* > m_aAddedInfos; - css::uno::Reference< ::svt::DialogClosedListener > xDialogListener; + rtl::Reference< ::svt::DialogClosedListener > xDialogListener; css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker; DECL_LINK_TYPED( EnableHdl_Impl, Button*, void); |