summaryrefslogtreecommitdiffstats
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-19 09:10:43 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-19 08:33:10 +0000
commitd4d2fc24793960a07275e49706b90928b4a0c764 (patch)
tree3d5bd19190426cee18730893ac9ff292caf2566e /xmloff
parentCppunitTest_sd_uimpress: fix loplugin:cppunitassertequals warnings (diff)
downloadcore-d4d2fc24793960a07275e49706b90928b4a0c764.tar.gz
core-d4d2fc24793960a07275e49706b90928b4a0c764.zip
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 'xmloff')
-rw-r--r--xmloff/source/style/impastpl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx
index 8d2305aeca4d..f35b09862a76 100644
--- a/xmloff/source/style/impastpl.cxx
+++ b/xmloff/source/style/impastpl.cxx
@@ -508,8 +508,8 @@ bool SvXMLAutoStylePoolP_Impl::Add(
if (it2 == rFamily.m_ParentSet.end())
{
std::pair<XMLAutoStyleFamily::ParentSetType::iterator,bool> r =
- rFamily.m_ParentSet.insert(std::unique_ptr<XMLAutoStylePoolParent>(
- new XMLAutoStylePoolParent(rParentName)));
+ rFamily.m_ParentSet.insert(o3tl::make_unique<XMLAutoStylePoolParent>(
+ rParentName));
it2 = r.first;
}
@@ -542,8 +542,8 @@ bool SvXMLAutoStylePoolP_Impl::AddNamed(
if (it2 == rFamily.m_ParentSet.end())
{
std::pair<XMLAutoStyleFamily::ParentSetType::iterator,bool> r =
- rFamily.m_ParentSet.insert(std::unique_ptr<XMLAutoStylePoolParent>(
- new XMLAutoStylePoolParent(rParentName)));
+ rFamily.m_ParentSet.insert(o3tl::make_unique<XMLAutoStylePoolParent>(
+ rParentName));
it2 = r.first;
}