summaryrefslogtreecommitdiff
path: root/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
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 /chart2/source/controller/accessibility/AccessibleTextHelper.cxx
parent8bf8c9ba4f031fa8c838321b0cf4c7bb8dd44753 (diff)
Replace some std::auto_ptr function parameters with std::unique_ptr
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
Diffstat (limited to 'chart2/source/controller/accessibility/AccessibleTextHelper.cxx')
-rw-r--r--chart2/source/controller/accessibility/AccessibleTextHelper.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleTextHelper.cxx b/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
index 9c3f3c15dbbf..96564fcd904c 100644
--- a/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
+++ b/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
@@ -17,6 +17,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <memory>
+#include <utility>
+
#include "AccessibleTextHelper.hxx"
#include "DrawViewWrapper.hxx"
@@ -87,9 +92,9 @@ void SAL_CALL AccessibleTextHelper::initialize( const Sequence< uno::Any >& aArg
SdrObject * pTextObj = m_pDrawViewWrapper->getNamedSdrObject( aCID );
if( pTextObj )
{
- SvxEditSource * pEditSource = new SvxTextEditSource( *pTextObj, 0, *pView, *pWindow );
+ std::unique_ptr<SvxEditSource> pEditSource(new SvxTextEditSource( *pTextObj, 0, *pView, *pWindow ));
m_pTextHelper = new ::accessibility::AccessibleTextHelper(
- ::std::auto_ptr< SvxEditSource >( pEditSource ));
+ std::move(pEditSource));
if( m_pTextHelper )
m_pTextHelper->SetEventSource( xEventSource );
}