summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2016-09-03 23:52:19 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2016-09-03 23:52:19 +0200
commit4a7a36b544e1ae3c87fef014922d572c409e94ff (patch)
tree0416ebafef6570bbed0bdb1a5ac92af3b3fe63c1
parent423b4ed6a2474f9ba1110b324b54950c2fc56c76 (diff)
cppcheck: variableScope
Change-Id: Id290ca5e53c75b2c27dda6a6bb228a380084b115
-rw-r--r--sw/source/ui/fldui/fldref.cxx6
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() &&