summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/AccessibleEmptyEditSource.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-29 15:20:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-29 15:20:22 +0200
commitdc635425118c77d35534d1bf8b3aa12a1ad95752 (patch)
tree266c8b6b45110eccfe4c8cac375e0eb0ffde3db9 /svx/source/accessibility/AccessibleEmptyEditSource.cxx
parentd3de12fcfc85feb36eda3b0495807ef11d8fe772 (diff)
svx: std::auto_ptr -> std::unique_ptr
Change-Id: Ib70d974817bcdd9a582e9be28d28b007cdc3a7a7
Diffstat (limited to 'svx/source/accessibility/AccessibleEmptyEditSource.cxx')
-rw-r--r--svx/source/accessibility/AccessibleEmptyEditSource.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/accessibility/AccessibleEmptyEditSource.cxx b/svx/source/accessibility/AccessibleEmptyEditSource.cxx
index 123e0b2f07e1..cb31bd0e001a 100644
--- a/svx/source/accessibility/AccessibleEmptyEditSource.cxx
+++ b/svx/source/accessibility/AccessibleEmptyEditSource.cxx
@@ -269,12 +269,8 @@ namespace accessibility
if( mrObj.GetModel() )
EndListening( *mrObj.GetModel() );
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- ::std::auto_ptr< SvxEditSource > pProxySource( new AccessibleProxyEditSource_Impl(mrObj, mrView, mrViewWindow) );
- ::std::auto_ptr< SvxEditSource > tmp = mpEditSource;
- SAL_WNODEPRECATED_DECLARATIONS_POP
- mpEditSource = pProxySource;
- pProxySource = tmp;
+ ::std::unique_ptr< SvxEditSource > pProxySource( new AccessibleProxyEditSource_Impl(mrObj, mrView, mrViewWindow) );
+ mpEditSource.swap(pProxySource);
// register as listener
StartListening( mpEditSource->GetBroadcaster() );