diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-24 16:03:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-24 16:06:52 +0200 |
commit | 4e820251892917a92996f1aa6978ad609112001c (patch) | |
tree | 8459a52aec67f0950aa9c12cd12b98b9eb02c89f /svx/source/table | |
parent | 8bf8c9ba4f031fa8c838321b0cf4c7bb8dd44753 (diff) |
Replace some std::auto_ptr function parameters with std::unique_ptr
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
Diffstat (limited to 'svx/source/table')
-rw-r--r-- | svx/source/table/accessiblecell.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/table/accessiblecell.cxx b/svx/source/table/accessiblecell.cxx index b223f23ef7f0..60b25c76cd55 100644 --- a/svx/source/table/accessiblecell.cxx +++ b/svx/source/table/accessiblecell.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <memory> +#include <utility> #include <accessiblecell.hxx> @@ -79,10 +83,8 @@ void AccessibleCell::Init (void) if( pOutlinerParaObject ) { // non-empty text -> use full-fledged edit source right away - SAL_WNODEPRECATED_DECLARATIONS_PUSH - ::std::auto_ptr<SvxEditSource> pEditSource( new SvxTextEditSource( mxCell->GetObject(), mxCell.get(), *pView, *pWindow) ); - SAL_WNODEPRECATED_DECLARATIONS_POP - mpText = new AccessibleTextHelper( pEditSource ); + ::std::unique_ptr<SvxEditSource> pEditSource( new SvxTextEditSource( mxCell->GetObject(), mxCell.get(), *pView, *pWindow) ); + mpText = new AccessibleTextHelper( std::move(pEditSource) ); mpText->SetEventSource(this); } |