sw/source/filter/writer/writer.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 660af778e6f61180b4b7f3f727fba23fed606117 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Jan 2 21:46:09 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Jan 3 22:10:59 2024 +0100 cid#1550045 silence Free of address-of expression Change-Id: I132d1c80f30fbe50a35285f9bbe5515592fe49df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161571 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 1671f27e0b4a..b5671f5f92aa 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -384,6 +384,7 @@ void Writer::AddFontItem( SfxItemPool& rPool, const SvxFontItem& rFont ) SvxFontItem aFont( rFont ); aFont.SetWhich( RES_CHRATR_FONT ); pItem = &rPool.DirectPutItemInPool( aFont ); + assert(pItem != &aFont && "Pointer to local outside scope (pushed to aFontRemoveLst)"); } else pItem = &rPool.DirectPutItemInPool( rFont );