summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-19 20:40:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-20 08:55:56 +0200
commit494358661a05ce548d09e51703f72cd2c012437b (patch)
treeca7d15cb6f7b318e78f352b9d86c2805423087cc /include/editeng
parent9819f4221ced92fced1760d75019d399c9a3383c (diff)
no need to allocate SfxItemSet separately in SvxOutlinerForwarder
Change-Id: I6042993749b5e0b841e82e3b6930e656b88c7fd7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122327 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/unoforou.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/editeng/unoforou.hxx b/include/editeng/unoforou.hxx
index 4695077fa7c7..bbc92541735c 100644
--- a/include/editeng/unoforou.hxx
+++ b/include/editeng/unoforou.hxx
@@ -23,7 +23,9 @@
#include <editeng/unoedsrc.hxx>
#include <editeng/editengdllapi.h>
#include <editeng/editdata.hxx>
+#include <svl/itemset.hxx>
#include <memory>
+#include <optional>
class Outliner;
@@ -37,14 +39,14 @@ private:
/** this pointer may be null or point to an item set for the attribs of
the selection maAttribsSelection */
- mutable std::unique_ptr<SfxItemSet> mpAttribsCache;
+ mutable std::optional<SfxItemSet> moAttribsCache;
/** if we have a cached attribute item set, this is the selection of it */
mutable ESelection maAttribCacheSelection;
/** this pointer may be null or point to an item set for the paragraph
mnParaAttribsCache */
- mutable std::unique_ptr<SfxItemSet> mpParaAttribsCache;
+ mutable std::optional<SfxItemSet> moParaAttribsCache;
/** if we have a cached para attribute item set, this is the paragraph of it */
mutable sal_Int32 mnParaAttribsCache;