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 /xmloff | |
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 'xmloff')
-rw-r--r-- | xmloff/source/style/impastpl.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx index 69e535b9a82c..51a59e9b57d0 100644 --- a/xmloff/source/style/impastpl.cxx +++ b/xmloff/source/style/impastpl.cxx @@ -34,7 +34,7 @@ #include <xmloff/xmltoken.hxx> #include "impastpl.hxx" - +#include <o3tl/make_unique.hxx> using namespace ::std; using namespace ::com::sun::star; @@ -433,9 +433,7 @@ void SvXMLAutoStylePoolP_Impl::AddFamily( } #endif - std::unique_ptr<XMLAutoStyleFamily> pFamily( - new XMLAutoStyleFamily(nFamily, rStrName, rMapper, aPrefix, bAsFamily)); - m_FamilySet.insert(std::move(pFamily)); + m_FamilySet.insert(o3tl::make_unique<XMLAutoStyleFamily>(nFamily, rStrName, rMapper, aPrefix, bAsFamily)); } void SvXMLAutoStylePoolP_Impl::SetFamilyPropSetMapper( |