summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/utlui/content.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 1063970181e9..395ab7094672 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1758,12 +1758,11 @@ void SwContentTree::Display( bool bActive )
rpContentT.reset(new SwContentType(pShell, nCntType, m_nOutlineLevel ));
OUString sEntry = rpContentT->GetName();
- SvTreeListEntry* pEntry;
Image aImage(GetBitmapForContentTypeId(nCntType));
bool bChOnDemand = 0 != rpContentT->GetMemberCount();
- pEntry = InsertEntry(sEntry, aImage, aImage,
+ SvTreeListEntry* pEntry = InsertEntry(sEntry, aImage, aImage,
nullptr, bChOnDemand, TREELIST_APPEND, rpContentT.get());
- if(pEntry && !pEntry->HasChildren() && !pEntry->HasChildrenOnDemand())
+ if (!pEntry->HasChildren() && !pEntry->HasChildrenOnDemand())
{
pEntry->SetFlags(pEntry->GetFlags() | SvTLEntryFlags::SEMITRANSPARENT);
pEntry->SetTextColor(COL_GRAY);