include/sax/fshelper.hxx | 2 +- sax/source/tools/fshelper.cxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
New commits: commit 2241ce64b29e87e0c654ab529b71aa98f71b4a14 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Oct 11 10:16:08 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Oct 11 20:33:01 2022 +0200 use std::unique_ptr Change-Id: Ibb3d71c8d50e1ad7236a6fe01ff83d3cd1a866f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141214 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx index 79f0e1a0f30f..115a3f912ca5 100644 --- a/include/sax/fshelper.hxx +++ b/include/sax/fshelper.hxx @@ -156,7 +156,7 @@ private: void pushAttributeValue( sal_Int32 attribute, const char* value ); void pushAttributeValue( sal_Int32 attribute, const OString& value ); - FastSaxSerializer* mpSerializer; + std::unique_ptr<FastSaxSerializer> mpSerializer; }; typedef std::shared_ptr< FastSerializerHelper > FSHelperPtr; diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index a560e5bd1bad..7cbd3c36abc1 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -35,7 +35,6 @@ FastSerializerHelper::FastSerializerHelper(const Reference< io::XOutputStream >& FastSerializerHelper::~FastSerializerHelper() { mpSerializer->endDocument(); - delete mpSerializer; } void FastSerializerHelper::startElement(sal_Int32 elementTokenId)