From 0b23eec200c8c12db5778405df44f4bf8e38e4ad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 May 2016 16:02:39 +0200 Subject: 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 Reviewed-by: Noel Grandin --- include/sfx2/filedlghelper.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/sfx2/filedlghelper.hxx') diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx index 13a34d56ac90..9c7e3b3060a7 100644 --- a/include/sfx2/filedlghelper.hxx +++ b/include/sfx2/filedlghelper.hxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -100,7 +101,7 @@ private: Link m_aDialogClosedLink; ErrCode m_nError; - css::uno::Reference< FileDialogHelper_Impl > mpImpl; + rtl::Reference< FileDialogHelper_Impl > mpImpl; public: @@ -132,9 +133,11 @@ public: const css::uno::Sequence< OUString >& rBlackList, vcl::Window* _pPreferredParent = nullptr ); - virtual ~FileDialogHelper(); + FileDialogHelper& operator=(const FileDialogHelper &) = delete; + FileDialogHelper(const FileDialogHelper &) = delete; + ErrCode Execute(); void StartExecuteModal( const Link& rEndDialogHdl ); inline ErrCode GetError() const { return m_nError; } -- cgit