summaryrefslogtreecommitdiff
path: root/include/editeng/AccessibleStaticTextBase.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-24 16:03:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-24 16:06:52 +0200
commit4e820251892917a92996f1aa6978ad609112001c (patch)
tree8459a52aec67f0950aa9c12cd12b98b9eb02c89f /include/editeng/AccessibleStaticTextBase.hxx
parent8bf8c9ba4f031fa8c838321b0cf4c7bb8dd44753 (diff)
Replace some std::auto_ptr function parameters with std::unique_ptr
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
Diffstat (limited to 'include/editeng/AccessibleStaticTextBase.hxx')
-rw-r--r--include/editeng/AccessibleStaticTextBase.hxx11
1 files changed, 4 insertions, 7 deletions
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