summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-11 09:16:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-11 14:01:33 +0200
commit0095e0412eb4595aca548909fadeb36cd3d1728f (patch)
tree4860eda7a44ea56fa8e291c0bced3d44eea7f63f
parent57ffa96d413df2712b15355f49294e564bd0d996 (diff)
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 <caolanm@redhat.com>
-rw-r--r--sc/inc/address.hxx4
-rw-r--r--sc/inc/compressedarray.hxx1
-rw-r--r--sc/source/filter/inc/xladdress.hxx1
3 files changed, 3 insertions, 3 deletions
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 ) {}