diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 10:00:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 11:53:13 +0200 |
commit | 55c4bfc5717c6f915e8760eec95be76813d5fce8 (patch) | |
tree | 5d83d6f74efa0b58bb7e27b0b8b8d8f803f8c061 /include/svx | |
parent | e545598e738407019419a4c0fc252314d8f434d4 (diff) |
use std::optional<OutlinerParaObject> in SdrUndoAttrObj
it is a COW object, no need to allocate separately on heap
Change-Id: Ibfecb263eedb6ef5eca8122e80a564cb1e872db1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120699
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdundo.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index ccfa69476bba..0064aa85c6c5 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -154,10 +154,10 @@ protected: bool bHaveToTakeRedoSet; // When assigning TextItems to a drawing object with text: - std::unique_ptr<OutlinerParaObject> pTextUndo; + std::optional<OutlinerParaObject> pTextUndo; // #i8508# // The text rescue mechanism needs also to be implemented for redo actions. - std::unique_ptr<OutlinerParaObject> pTextRedo; + std::optional<OutlinerParaObject> pTextRedo; // If we have a group object: std::unique_ptr<SdrUndoGroup> pUndoGroup; |