summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/number.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 14:24:25 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-30 11:16:34 +0200
commitb2ab2c862c289d1ab6aabd3de21f4ea45f7a4aed (patch)
tree6e9344031854b586504feb8fdd6adc702c250bc1 /sw/source/core/doc/number.cxx
parenta7f8882e4975e4194732506e4ffb9f7af6eb9c72 (diff)
SwModify::Add/Remove always derefs arg
an effort to remove C6011 Dereferencing NULL pointer 'pDepend' Change-Id: If9e7b7be25ece3df60ada09e5c83d03aebe9c535 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166865 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/core/doc/number.cxx')
-rw-r--r--sw/source/core/doc/number.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index b842c9e9a391..c92d2af29a7d 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -230,7 +230,7 @@ SwNumFormat::SwNumFormat(const SvxNumberFormat& rNumFormat, SwDoc* pDoc)
? pDoc->getIDocumentStylePoolAccess().GetCharFormatFromPool( nId )
: pDoc->MakeCharFormat( rCharStyleName, nullptr );
}
- pCFormat->Add( this );
+ pCFormat->Add(*this);
}
else
EndListeningAll();
@@ -288,7 +288,7 @@ bool SwNumFormat::operator==( const SwNumFormat& rNumFormat) const
void SwNumFormat::SetCharFormat( SwCharFormat* pChFormat)
{
if( pChFormat )
- pChFormat->Add( this );
+ pChFormat->Add(*this);
else
EndListeningAll();
}