From d6831a8a34257789a920491747e12ebe62f927fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 17 Oct 2017 12:39:08 +0200 Subject: loplugin:useuniqueptr in StyleBag Change-Id: I965b086338935aa91691b96a63c9bc95f8b7f7ca Reviewed-on: https://gerrit.libreoffice.org/43452 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/exp_share.hxx | 3 ++- xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 14 +++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'xmlscript/source') diff --git a/xmlscript/source/xmldlg_imexp/exp_share.hxx b/xmlscript/source/xmldlg_imexp/exp_share.hxx index 661f356c5869..825db80f598c 100644 --- a/xmlscript/source/xmldlg_imexp/exp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/exp_share.hxx @@ -31,6 +31,7 @@ #include #include #include +#include #include @@ -75,7 +76,7 @@ struct Style }; class StyleBag { - ::std::vector< Style * > _styles; + ::std::vector< std::unique_ptr