diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-18 21:56:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-19 12:57:07 +0200 |
commit | d3fbfa4a4b3ef80575ec5f27ca13d937d6f52bf6 (patch) | |
tree | 937045c38231d2a4067dd55944d2161e68f80dd5 /include/svx | |
parent | vcl: test PhysicalFontFamily and move to vcl::font namespace (diff) | |
download | core-d3fbfa4a4b3ef80575ec5f27ca13d937d6f52bf6.tar.gz core-d3fbfa4a4b3ef80575ec5f27ca13d937d6f52bf6.zip |
no need to allocate SfxItemSet separately in SdrUndoAttrObj
Change-Id: I32c9d79262c711a4f28c910e1b8f8ca9c1f011e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122305
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdundo.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 0064aa85c6c5..67ca464b5b4c 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -26,6 +26,7 @@ #include <vector> #include <editeng/outlobj.hxx> +#include <svl/itemset.hxx> #include <svl/undo.hxx> #include <svl/style.hxx> #include <tools/gen.hxx> @@ -144,8 +145,8 @@ protected: class SVXCORE_DLLPUBLIC SdrUndoAttrObj : public SdrUndoObj { protected: - std::unique_ptr<SfxItemSet> pUndoSet; - std::unique_ptr<SfxItemSet> pRedoSet; + std::optional<SfxItemSet> moUndoSet; + std::optional<SfxItemSet> moRedoSet; // FIXME: Or should we better remember the StyleSheetNames? rtl::Reference< SfxStyleSheetBase > mxUndoStyleSheet; |