diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-18 11:03:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-20 11:02:45 +0000 |
commit | b0c0a074a2318a231f3f635784da494f1b713c53 (patch) | |
tree | 148eff548408d274d4208109d948e763c66e1b5d /sfx2 | |
parent | 29a9f433c268414747d8ec7343fc2b5987971738 (diff) |
clang-tidy clang-analyzer-deadcode.DeadStores
suspect that some of these may reveal latent bugs....
Change-Id: I9de9aabbda9c8952715631577c29c1830df1eb71
Reviewed-on: https://gerrit.libreoffice.org/24200
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 40b1bf07d24b..b5a6927ee00a 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -644,10 +644,9 @@ void IndexTabPage_Impl::InitializeIndex() aIndex = aTempString; it = aInfo.insert(sfx2::KeywordInfo::value_type(aTempString, 0)).first; if ( (tmp = it->second++) != 0) - nPos = m_pIndexCB->InsertEntry(aTempString + OUString(append, tmp)); + m_pIndexCB->InsertEntry(aTempString + OUString(append, tmp)); else - nPos = m_pIndexCB->InsertEntry(aTempString); - } + m_pIndexCB->InsertEntry(aTempString); } } else aIndex.clear(); |