From 4e820251892917a92996f1aa6978ad609112001c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann <sbergman@redhat.com> Date: Wed, 24 Sep 2014 16:03:36 +0200 Subject: Replace some std::auto_ptr function parameters with std::unique_ptr Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49 --- include/editeng/AccessibleStaticTextBase.hxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include/editeng/AccessibleStaticTextBase.hxx') diff --git a/include/editeng/AccessibleStaticTextBase.hxx b/include/editeng/AccessibleStaticTextBase.hxx index 9d74ad13a992..e061f841019c 100644 --- a/include/editeng/AccessibleStaticTextBase.hxx +++ b/include/editeng/AccessibleStaticTextBase.hxx @@ -101,9 +101,8 @@ namespace accessibility model) contained in the given SvxEditSource. */ - SAL_WNODEPRECATED_DECLARATIONS_PUSH - explicit AccessibleStaticTextBase( ::std::auto_ptr< SvxEditSource > pEditSource ); - SAL_WNODEPRECATED_DECLARATIONS_POP + explicit AccessibleStaticTextBase( ::std::unique_ptr< SvxEditSource > && pEditSource ); + virtual ~AccessibleStaticTextBase(); private: @@ -144,16 +143,14 @@ namespace accessibility This class does not have a dispose method, since it is not a UNO component. Nevertheless, it holds C++ references to several core objects, so you should issue a - SetEditSource(::std::auto_ptr<SvxEditSource>(NULL)) in + SetEditSource(::std::unique_ptr<SvxEditSource>()) in your dispose() method. @param pEditSource The new edit source to set. Object ownership is transferred from the caller to the callee. */ - SAL_WNODEPRECATED_DECLARATIONS_PUSH - virtual void SetEditSource( ::std::auto_ptr< SvxEditSource > pEditSource ); - SAL_WNODEPRECATED_DECLARATIONS_POP + virtual void SetEditSource( ::std::unique_ptr< SvxEditSource > && pEditSource ); /** Set the event source -- cgit