diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-09 20:01:33 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-10 22:04:08 +0100 |
commit | 90f2d688ecfb6c7daf21bc202d2c87ba2531a7b8 (patch) | |
tree | 279b6536f71f7d5692a16bba893efcb9feb24def /sfx2 | |
parent | 2206aaa72cc678ab3f04ad318dc5049f580c8d09 (diff) |
Take advantage of already calculated index
Change-Id: I6c367b00024e96aa4eef5490b3b296617851016f
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 2accd6aabc29..61f63cd3538f 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -1034,8 +1034,7 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl, LinkParamNone*, void) { sal_Int32 nIdx = 0; OUString aTitle = rRow.getToken( 0, '\t', nIdx ); - nIdx = 0; - OUString* pURL = new OUString( rRow.getToken( 2, '\t', nIdx ) ); + OUString* pURL = new OUString( rRow.getToken( 1, '\t', nIdx ) ); const sal_Int32 nPos = m_pResultsLB->InsertEntry( aTitle ); m_pResultsLB->SetEntryData( nPos, pURL ); } |