sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 04068eb6f9c153950e4fda75733728fc8922f668
Author: apurvapriyadarshi <apriyadarshi.1...@gmail.com>
Date:   Sun May 29 19:53:11 2016 +0530

    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 <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx 
b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index aa4467c..3fcf815 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());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to