[Libreoffice-commits] core.git: sw/source
Zolnai Tamás
tamas.zolnai at collabora.com
Sat Sep 3 21:53:27 UTC 2016
sw/source/ui/fldui/fldref.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 4a7a36b544e1ae3c87fef014922d572c409e94ff
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date: Sat Sep 3 23:52:19 2016 +0200
cppcheck: variableScope
Change-Id: Id290ca5e53c75b2c27dda6a6bb228a380084b115
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
index 4c880b9..301cfb5 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() &&
More information about the Libreoffice-commits
mailing list