summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-09-08 01:35:30 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-09-12 14:18:52 +0200
commit67e0d97767044ffe554a60015ac99bd00da97a3c (patch)
tree41f2405f44c8ae91fb8436cb526757056dddb8a3
parentSimplify: use getToken and just store converted integers (diff)
downloadcore-67e0d97767044ffe554a60015ac99bd00da97a3c.tar.gz
core-67e0d97767044ffe554a60015ac99bd00da97a3c.zip
Simplify TakeThread::execute()
Change-Id: Ic5c7e5ab2775422720875d117a22338cbfe283d3
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 0f42f1ac5afc..d89872e2fc4e 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -302,10 +302,8 @@ TakeThread::~TakeThread()
void TakeThread::execute()
{
- INetURLObject aURL;
sal_Int32 nEntries;
GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme;
- sal_Int32 nPos;
GalleryProgress* pStatusProgress;
{
@@ -317,10 +315,8 @@ void TakeThread::execute()
for( sal_Int32 i = 0; i < nEntries && schedule(); ++i )
{
- if( mpBrowser->bTakeAll )
- aURL = INetURLObject( mpBrowser->aFoundList[ nPos = i ] );
- else
- aURL = INetURLObject( mpBrowser->aFoundList[ nPos = mpBrowser->m_pLbxFound->GetSelectEntryPos( i ) ]);
+ const sal_Int32 nPos = mpBrowser->bTakeAll ? i : mpBrowser->m_pLbxFound->GetSelectEntryPos( i );
+ const INetURLObject aURL( mpBrowser->aFoundList[ nPos ]);
mrTakenList.push_back( (sal_uLong)nPos );