diff options
author | Sheikha AL-Hinai <sheikha443@gmail.com> | 2015-12-28 13:56:23 +0400 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-05 11:47:50 +0000 |
commit | d75b9fd582f0aa83bd2fc99028b3f83eb7171d61 (patch) | |
tree | ec1f2a307f773b18e0bf17a281a001fb0aa43bbf /starmath/source | |
parent | f961fef03906fc059a4a0c008799f68fc22727c1 (diff) |
tdf#94205: Use o3tl::make_unique insted of new+std::move.
Change-Id: I9ff14760479d2ac882546e2e5b74ab750ba2fa4b
Reviewed-on: https://gerrit.libreoffice.org/20984
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/accessibility.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index d5e8217d61d4..60707373d216 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -59,7 +59,7 @@ #include <unomodel.hxx> #include <document.hxx> #include <view.hxx> - +#include <o3tl/make_unique.hxx> using namespace com::sun::star; using namespace com::sun::star::lang; using namespace com::sun::star::uno; @@ -1625,10 +1625,8 @@ void SmEditAccessible::Init() EditView *pEditView = pWin->GetEditView(); if (pEditEngine && pEditView) { - ::std::unique_ptr< SvxEditSource > pEditSource( - new SmEditSource( pWin, *this ) ); assert(!pTextHelper); - pTextHelper.reset(new ::accessibility::AccessibleTextHelper( std::move(pEditSource) )); + pTextHelper.reset(new ::accessibility::AccessibleTextHelper( o3tl::make_unique<SmEditSource>( pWin, *this ) )); pTextHelper->SetEventSource( this ); } } |