Kaydet (Commit) 7da39475 authored tarafından Caolán McNamara's avatar Caolán McNamara

pvs-studio: silence dodgy V763 Parameter always rewritten

Change-Id: I4939b77dd733a6502d9a4c8e04305764ce56f3b8
Reviewed-on: https://gerrit.libreoffice.org/62187Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 62da1fde
......@@ -444,7 +444,7 @@ bool SwEditRegionDlg::CheckPasswd(CheckBox* pBox)
}
// recursively look for child-sections
void SwEditRegionDlg::RecurseList( const SwSectionFormat* pFormat, SvTreeListEntry* pEntry )
void SwEditRegionDlg::RecurseList(const SwSectionFormat* pFormat, SvTreeListEntry* pEntry)
{
SvTreeListEntry* pSelEntry = nullptr;
if (!pFormat)
......@@ -461,13 +461,13 @@ void SwEditRegionDlg::RecurseList( const SwSectionFormat* pFormat, SvTreeListEnt
SwSection *pSect = pFormat->GetSection();
SectRepr* pSectRepr = new SectRepr( n, *pSect );
Image aImg = BuildBitmap( pSect->IsProtect(),pSect->IsHidden());
pEntry = m_pTree->InsertEntry(pSect->GetSectionName(), aImg, aImg);
pEntry->SetUserData(pSectRepr);
RecurseList( pFormat, pEntry );
if (pEntry->HasChildren())
m_pTree->Expand(pEntry);
SvTreeListEntry* pNewEntry = m_pTree->InsertEntry(pSect->GetSectionName(), aImg, aImg);
pNewEntry->SetUserData(pSectRepr);
RecurseList( pFormat, pNewEntry );
if (pNewEntry->HasChildren())
m_pTree->Expand(pNewEntry);
if (pCurrSect==pSect)
m_pTree->Select(pEntry);
m_pTree->Select(pNewEntry);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment