sc/source/core/tool/cellform.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 83f82cb6efa3ae40fe04f1180a3da64abe92980c Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Nov 23 16:05:18 2021 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Tue Nov 23 21:43:02 2021 +0100 set empty value if not returning a shared string This is strictly speaking not necessary if callers would always initialize to nullptr, but I guess this is better. Change-Id: Ica88395e0f615afbd58efa71e5d64bfdd2a37319 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125734 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/tool/cellform.cxx b/sc/source/core/tool/cellform.cxx index 9c77246e2286..bc46c4567744 100644 --- a/sc/source/core/tool/cellform.cxx +++ b/sc/source/core/tool/cellform.cxx @@ -131,6 +131,8 @@ OUString ScCellFormat::GetInputString( const ScRefCellValue& rCell, sal_uInt32 nFormat, SvNumberFormatter& rFormatter, const ScDocument& rDoc, const svl::SharedString** pShared, bool bFiltering ) { + if(pShared != nullptr) + *pShared = nullptr; switch (rCell.meType) { case CELLTYPE_STRING: