diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-02 13:24:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-02 18:23:30 +0200 |
commit | 3d9bf9eea5803184da8e5e11477b6eb2f55aff3f (patch) | |
tree | c662b361ba04e597e8dd3649370e01ffd1ffbceb /hwpfilter | |
parent | 3a9436ef7786a6b96bf73328795029a047abe827 (diff) |
no need to allocate these on the heap
Change-Id: Ie7b8a5ee280da5dfcb15d217a4daccaf485cfbe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116588
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 06e26f8522c8..3b69da304af4 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -3712,10 +3712,10 @@ void HwpReader::makeFormula(TxtBox * hbox) } mybuf[l] = '\0'; - std::unique_ptr<Formula> form( new Formula(mybuf) ); - form->setDocumentHandler(m_rxDocumentHandler); - form->setAttributeListImpl(mxList.get()); - form->parse(); + Formula form( mybuf ); + form.setDocumentHandler(m_rxDocumentHandler); + form.setAttributeListImpl(mxList.get()); + form.parse(); } /** |