sc/source/filter/excel/xistyle.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 419f900df44ed273dd956e8d7d552532777cfb71 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Dec 30 10:38:34 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jan 1 13:33:36 2021 +0100 ofz#29094 Direct-leak Change-Id: I72ec1c07d2b3ccaba3f11bf7e3db564fd0090e81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108502 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index a2d76b6e8d54..7a263bc9ed21 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -1569,9 +1569,9 @@ void XclImpXFBuffer::Initialize() void XclImpXFBuffer::ReadXF( XclImpStream& rStrm ) { - XclImpXF* pXF = new XclImpXF( GetRoot() ); - pXF->ReadXF( rStrm ); - maXFList.push_back( std::unique_ptr<XclImpXF>(pXF) ); + std::unique_ptr<XclImpXF> xXF = std::make_unique<XclImpXF>(GetRoot()); + xXF->ReadXF(rStrm); + maXFList.emplace_back(std::move(xXF)); } void XclImpXFBuffer::ReadStyle( XclImpStream& rStrm ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits