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() ...@@ -302,10 +302,8 @@ TakeThread::~TakeThread()
void TakeThread::execute() void TakeThread::execute()
{ {
INetURLObject aURL;
sal_Int32 nEntries; sal_Int32 nEntries;
GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme; GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme;
sal_Int32 nPos;
GalleryProgress* pStatusProgress; GalleryProgress* pStatusProgress;
{ {
...@@ -317,10 +315,8 @@ void TakeThread::execute() ...@@ -317,10 +315,8 @@ void TakeThread::execute()
for( sal_Int32 i = 0; i < nEntries && schedule(); ++i ) for( sal_Int32 i = 0; i < nEntries && schedule(); ++i )
{ {
if( mpBrowser->bTakeAll ) const sal_Int32 nPos = mpBrowser->bTakeAll ? i : mpBrowser->m_pLbxFound->GetSelectEntryPos( i );
aURL = INetURLObject( mpBrowser->aFoundList[ nPos = i ] ); const INetURLObject aURL( mpBrowser->aFoundList[ nPos ]);
else
aURL = INetURLObject( mpBrowser->aFoundList[ nPos = mpBrowser->m_pLbxFound->GetSelectEntryPos( i ) ]);
mrTakenList.push_back( (sal_uLong)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