sw/source/core/undo/unattr.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 3a5ad705979e0928a2f96cafab7fc92aabfd2b75 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Apr 2 16:47:21 2023 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Apr 2 21:45:21 2023 +0200
cid#1524674 Uninitialized scalar field Change-Id: Ia32ed66c35f7d32b626e0bf719269ae8f45241c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149938 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index ca6a53f71e99..2c07bda259f0 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -120,6 +120,7 @@ SwUndoFormatAttr::SwUndoFormatAttr( SfxItemSet&& rOldSet, , m_sFormatName ( rChgFormat.GetName() ) // #i56253# , m_oOldSet( std::move( rOldSet ) ) + , m_nAnchorContentOffset( 0 ) , m_nNodeIndex( 0 ) , m_nFormatWhich( rChgFormat.Which() ) , m_bSaveDrawPt( bSaveDrawPt ) @@ -134,6 +135,7 @@ SwUndoFormatAttr::SwUndoFormatAttr( const SfxPoolItem& rItem, SwFormat& rChgForm : SwUndo( SwUndoId::INSFMTATTR, rChgFormat.GetDoc() ) , m_sFormatName(rChgFormat.GetName()) , m_oOldSet( rChgFormat.GetAttrSet().CloneAsValue( false ) ) + , m_nAnchorContentOffset( 0 ) , m_nNodeIndex( 0 ) , m_nFormatWhich( rChgFormat.Which() ) , m_bSaveDrawPt( bSaveDrawPt )