[Libreoffice-commits] core.git: sc/source

apurvapriyadarshi apriyadarshi.1995 at gmail.com
Mon May 30 07:24:04 UTC 2016


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

New commits:
commit 04068eb6f9c153950e4fda75733728fc8922f668
Author: apurvapriyadarshi <apriyadarshi.1995 at 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 <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at 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());


More information about the Libreoffice-commits mailing list