diff options
author | apurvapriyadarshi <apriyadarshi.1995@gmail.com> | 2016-05-29 19:53:11 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 07:23:30 +0000 |
commit | 04068eb6f9c153950e4fda75733728fc8922f668 (patch) | |
tree | f635c86c84c0c5bc755c1cad4753d94e8ff5b54a /sc/source | |
parent | 7bc1c79c26e52d5196fb36eee5c2f12f12d49ba6 (diff) |
tdf#94205 Use o3tl::make_unique instead of new + std::move
Removed std::move() and replaced it with 03tl::make_unique
Change-Id: I684c62e04e8e8e9df61379eb064ee2b1c012c762
Reviewed-on: https://gerrit.libreoffice.org/25610
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index aa4467ced8c9..3fcf81585200 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -140,10 +140,7 @@ ScNotesChildren::~ScNotesChildren() ::accessibility::AccessibleTextHelper* ScNotesChildren::CreateTextHelper(const OUString& rString, const Rectangle& rVisRect, const ScAddress& aCellPos, bool bMarkNote, sal_Int32 nChildOffset) const { - ::std::unique_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(o3tl::make_unique<ScAccessibleNoteTextData>(mpViewShell, rString, aCellPos, bMarkNote))); - - ::accessibility::AccessibleTextHelper* pTextHelper = new ::accessibility::AccessibleTextHelper(std::move(pEditSource)); - + ::accessibility::AccessibleTextHelper* pTextHelper = new ::accessibility::AccessibleTextHelper(o3tl::make_unique<ScAccessibilityEditSource>(o3tl::make_unique<ScAccessibleNoteTextData>(mpViewShell, rString, aCellPos, bMarkNote))); pTextHelper->SetEventSource(mpAccDoc); pTextHelper->SetStartIndex(nChildOffset); pTextHelper->SetOffset(rVisRect.TopLeft()); |