summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/SidebarTxtControlAcc.cxx')
-rw-r--r--sw/source/uibase/docvw/SidebarTxtControlAcc.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx b/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx
index 4ed9d5572520..d7bdc2dfe690 100644
--- a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx
+++ b/sw/source/uibase/docvw/SidebarTxtControlAcc.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 <SidebarTxtControlAcc.hxx>
#include <SidebarTxtControl.hxx>
@@ -168,9 +173,9 @@ SidebarTxtControlAccessibleContext::SidebarTxtControlAccessibleContext( SidebarT
, mpAccessibleTextHelper( 0 )
, maMutex()
{
- ::std::auto_ptr<SvxEditSource> pEditSource(
+ ::std::unique_ptr<SvxEditSource> pEditSource(
new SidebarTextEditSource( mrSidebarTxtControl ) );
- mpAccessibleTextHelper = new ::accessibility::AccessibleTextHelper( pEditSource );
+ mpAccessibleTextHelper = new ::accessibility::AccessibleTextHelper( std::move(pEditSource) );
mpAccessibleTextHelper->SetEventSource( mrSidebarTxtControl.GetWindowPeer() );
}