sc/inc/address.hxx | 4 ++-- sc/inc/compressedarray.hxx | 1 - sc/source/filter/inc/xladdress.hxx | 1 + 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 0095e0412eb4595aca548909fadeb36cd3d1728f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Oct 11 09:16:08 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Oct 11 14:01:33 2021 +0200 add coverity[uninit_member] to explanation Change-Id: I3aefd74b9fb940b9c7485a1c1b989a43912fdb60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123368 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 2f3a987b45bc..56bd8d7f3e7d 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -244,8 +244,8 @@ public: ScAddress( SCCOL nColP, SCROW nRowP, SCTAB nTabP ) : nRow(nRowP), nCol(nColP), nTab(nTabP) {} - /** Yes, it is what it seems to be: Uninitialized. May be used for - performance reasons if it is initialized by other means. */ + /** coverity[uninit_member] - Yes, it is what it seems to be: Uninitialized. + May be used for performance reasons if it is initialized by other means. */ ScAddress( Uninitialized ) {} ScAddress( InitializeInvalid ) : diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx index 286b42e8ff0a..010200068be5 100644 --- a/sc/inc/compressedarray.hxx +++ b/sc/inc/compressedarray.hxx @@ -62,7 +62,6 @@ public: { A nEnd; // start is end of previous entry + 1 D aValue; - DataEntry() {} //! uninitialized }; struct RangeData { diff --git a/sc/source/filter/inc/xladdress.hxx b/sc/source/filter/inc/xladdress.hxx index bb1bc77aeb11..e090d8445842 100644 --- a/sc/source/filter/inc/xladdress.hxx +++ b/sc/source/filter/inc/xladdress.hxx @@ -31,6 +31,7 @@ struct XclAddress sal_uInt16 mnCol; sal_uInt32 mnRow; + // coverity[uninit_member] - members deliberately not initialized explicit XclAddress( ScAddress::Uninitialized ) {} explicit XclAddress() : mnCol( 0 ), mnRow( 0 ) {} explicit XclAddress( sal_uInt16 nCol, sal_uInt32 nRow ) : mnCol( nCol ), mnRow( nRow ) {}