sc: silence warning C6011: Dereferencing NULL pointer 'pEntry'

E:/jenkins/workspace/lo_tb_master_win_analyze/vcl/source/treelist/treelistbox.cxx(801): error C2220: the following warning is treated as an error
E:\jenkins\workspace\lo_tb_master_win_analyze\vcl\source\treelist\treelistbox.cxx(791) : warning C6011: Dereferencing NULL pointer 'pEntry'. : Lines: 788, 789, 791

Change-Id: I1a32770823cd695343bc3c0d3a33fcbd0e7e1948
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202562
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2026-03-24 10:58:52 +01:00
parent d5509c16ca
commit 6306f5b249
+1 -1
View File
@@ -785,7 +785,7 @@ bool SvTreeListBox::IsExpanded(SvTreeListEntry* pEntry) const
bool SvTreeListBox::IsAllExpanded(SvTreeListEntry* pEntry) const
{
DBG_ASSERT(pEntry, "IsAllExpanded:No Entry");
assert(pEntry && "IsAllExpanded:No Entry");
if (!IsExpanded(pEntry))
return false;
const SvTreeListEntries& rChildren = pEntry->GetChildEntries();