summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-30 15:15:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-30 19:17:03 +0200
commit2e32150731f0ec5176731686d77e2873023e9dd4 (patch)
tree5b2fdac39bca2a7571cf67f8d10ddec0cca8ee15 /include/xmloff
parent7b87afa899be289306c709d35eb1d32c0b73b1ed (diff)
these can be stack allocated
Change-Id: Ief9a0732d50af95d679d1d6b66dec9d2e2d141df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135132 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/txtimppr.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/xmloff/txtimppr.hxx b/include/xmloff/txtimppr.hxx
index bfbd40f6aba0..860c869611ab 100644
--- a/include/xmloff/txtimppr.hxx
+++ b/include/xmloff/txtimppr.hxx
@@ -21,7 +21,7 @@
#include <xmloff/dllapi.h>
#include <xmloff/xmlimppr.hxx>
-#include <memory>
+#include <optional>
class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper final : public SvXMLImportPropertyMapper
{
@@ -41,10 +41,10 @@ class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper final : public SvXMLImportPro
XMLPropertyState const * pFontFamily,
XMLPropertyState const * pFontPitch,
XMLPropertyState const * pFontCharSet,
- std::unique_ptr<XMLPropertyState>* ppNewFontStyleName,
- std::unique_ptr<XMLPropertyState>* ppNewFontFamily,
- std::unique_ptr<XMLPropertyState>* ppNewFontPitch,
- std::unique_ptr<XMLPropertyState>* ppNewFontCharSet ) const;
+ std::optional<XMLPropertyState>* ppNewFontStyleName,
+ std::optional<XMLPropertyState>* ppNewFontFamily,
+ std::optional<XMLPropertyState>* ppNewFontPitch,
+ std::optional<XMLPropertyState>* ppNewFontCharSet ) const;
virtual bool handleSpecialItem(
XMLPropertyState& rProperty,