diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-10-03 14:43:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-10-03 21:46:08 +0200 |
commit | 117fdcf8d37ee764ebe74a8d410ab323254d95f1 (patch) | |
tree | 48e0c579c179e755937569ea47127935e7378420 /sc | |
parent | 503ab1ca9ae11978d9717557546c01ff598aaf88 (diff) |
cid#1492280 avoid Missing move assignment operator
Change-Id: I59269ea818a98b4d5a2bf476b3aff2ca4f105a93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/undo/undostyl.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index a9d47feec685..b0c17277a34d 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.cxx @@ -68,7 +68,11 @@ void ScStyleSaveData::InitFromStyle( const SfxStyleSheetBase* pSource ) moItems.emplace(const_cast<SfxStyleSheetBase*>(pSource)->GetItemSet()); } else - *this = ScStyleSaveData(); // empty + { + aName.clear(); + aParent.clear(); + moItems.reset(); + } } ScUndoModifyStyle::ScUndoModifyStyle( ScDocShell* pDocSh, SfxStyleFamily eFam, |