sc/source/ui/undo/undostyl.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 117fdcf8d37ee764ebe74a8d410ab323254d95f1
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Oct 3 14:43:51 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Oct 3 21:46:08 2021 +0200

    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 <caol...@redhat.com>

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,

Reply via email to