diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2016-09-03 23:52:19 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2016-09-03 23:52:19 +0200 |
commit | 4a7a36b544e1ae3c87fef014922d572c409e94ff (patch) | |
tree | 0416ebafef6570bbed0bdb1a5ac92af3b3fe63c1 /sw | |
parent | 423b4ed6a2474f9ba1110b324b54950c2fc56c76 (diff) |
cppcheck: variableScope
Change-Id: Id290ca5e53c75b2c27dda6a6bb228a380084b115
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/fldref.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 4c880b932754..301cfb5d385b 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -588,11 +588,10 @@ void SwFieldRefPage::UpdateSubType(const OUString& filterString) bool bCertainTextNodeSelected( false ); for ( size_t nOutlIdx = 0; nOutlIdx < maOutlineNodes.size(); ++nOutlIdx ) { - SvTreeListEntry* pEntry = nullptr; bool isSubstring = MatchSubstring(pIDoc->getOutlineText( nOutlIdx, true, true, false ), filterString); if(isSubstring) { - pEntry = m_pSelectionToolTipLB->InsertEntry( + SvTreeListEntry* pEntry = m_pSelectionToolTipLB->InsertEntry( pIDoc->getOutlineText( nOutlIdx, true, true, false ) ); pEntry->SetUserData( reinterpret_cast<void*>(nOutlIdx) ); if ( ( IsFieldEdit() && @@ -620,11 +619,10 @@ void SwFieldRefPage::UpdateSubType(const OUString& filterString) bool bCertainTextNodeSelected( false ); for ( size_t nNumItemIdx = 0; nNumItemIdx < maNumItems.size(); ++nNumItemIdx ) { - SvTreeListEntry* pEntry = nullptr; bool isSubstring = MatchSubstring(pIDoc->getListItemText( *maNumItems[nNumItemIdx] ), filterString); if(isSubstring) { - pEntry = m_pSelectionToolTipLB->InsertEntry( + SvTreeListEntry* pEntry = m_pSelectionToolTipLB->InsertEntry( pIDoc->getListItemText( *maNumItems[nNumItemIdx] ) ); pEntry->SetUserData( reinterpret_cast<void*>(nNumItemIdx) ); if ( ( IsFieldEdit() && |