diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 09:10:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 08:33:10 +0000 |
commit | d4d2fc24793960a07275e49706b90928b4a0c764 (patch) | |
tree | 3d5bd19190426cee18730893ac9ff292caf2566e /filter | |
parent | 71b74f8fd1fc84cf92dddeab02647b8b765d0d4a (diff) |
clang-tidy modernize-make-unique
Change-Id: I550bb69ddcef69906027516ccde62cf8e87c295b
Reviewed-on: https://gerrit.libreoffice.org/25138
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 5 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index dae59b1f46d8..1728f90553a0 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -139,6 +139,7 @@ #include <rtl/ustring.hxx> #include <svtools/embedhlp.hxx> #include <memory> +#include <o3tl/make_unique.hxx> using namespace ::com::sun::star ; using namespace ::com::sun::star::drawing; @@ -6186,8 +6187,8 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt, } m_xShapeInfosByTxBxComp->insert(std::make_shared<SvxMSDffShapeInfo>( aInfo)); - m_pShapeOrders->push_back(std::unique_ptr<SvxMSDffShapeOrder>( - new SvxMSDffShapeOrder( aInfo.nShapeId ))); + m_pShapeOrders->push_back(o3tl::make_unique<SvxMSDffShapeOrder>( + aInfo.nShapeId )); } // and position the Stream correctly again diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 1a2c0191fe4d..8708a3306d04 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -119,6 +119,7 @@ #include <vcl/virdev.hxx> #include <svtools/embedhlp.hxx> #include <o3tl/enumrange.hxx> +#include <o3tl/make_unique.hxx> #include <algorithm> #include <cassert> @@ -5886,7 +5887,7 @@ PPTParagraphObj::~PPTParagraphObj() void PPTParagraphObj::AppendPortion( PPTPortionObj& rPPTPortion ) { m_PortionList.push_back( - std::unique_ptr<PPTPortionObj>(new PPTPortionObj(rPPTPortion))); + o3tl::make_unique<PPTPortionObj>(rPPTPortion)); if ( !mbTab ) { mbTab = m_PortionList.back()->HasTabulator(); |