Kaydet (Commit) 67e0d977 authored tarafından Matteo Casalin's avatar Matteo Casalin

Simplify TakeThread::execute()

Change-Id: Ic5c7e5ab2775422720875d117a22338cbfe283d3
üst 6c292d31
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment