diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-14 18:19:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-14 18:19:26 +0200 |
commit | 83360372383fdcbab18560a5113c92115b166cd5 (patch) | |
tree | f2731a6a09ba425bd2114de95184d60bedb6828a /sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx | |
parent | 3c2803bdbc598deeaf6efe43870d4f9d61cb2c6a (diff) |
tdf#94205: Some remaining new+std::move -> o3tl::make_unique
Change-Id: I6a9a46d37bf09f6b497d591498c40103f4c96f59
Diffstat (limited to 'sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx index 816a78dc4b72..3aed647783de 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx @@ -19,9 +19,6 @@ #include <sal/config.h> -#include <memory> -#include <utility> - /* Somehow, under same circumstances, MSVC creates object code for 2 * inlined functions. Nobody here uses them, so simply define them away * so that there be no dupplicate symbols anymore. @@ -420,10 +417,11 @@ void ScAccessiblePreviewHeaderCell::CreateTextHelper() { if (!mpTextHelper) { - - ::std::unique_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(o3tl::make_unique<ScAccessiblePreviewHeaderCellTextData>(mpViewShell, OUString(getAccessibleName()), maCellPos, mbColumnHeader, mbRowHeader))); - - mpTextHelper = new ::accessibility::AccessibleTextHelper(std::move(pEditSource)); + mpTextHelper = new ::accessibility::AccessibleTextHelper( + o3tl::make_unique<ScAccessibilityEditSource>( + o3tl::make_unique<ScAccessiblePreviewHeaderCellTextData>( + mpViewShell, OUString(getAccessibleName()), maCellPos, + mbColumnHeader, mbRowHeader))); mpTextHelper->SetEventSource(this); } } |