aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llxfermanager.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llmessage/llxfermanager.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llmessage/llxfermanager.cpp')
-rw-r--r--linden/indra/llmessage/llxfermanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llxfermanager.cpp b/linden/indra/llmessage/llxfermanager.cpp
index 914488e..7758a32 100644
--- a/linden/indra/llmessage/llxfermanager.cpp
+++ b/linden/indra/llmessage/llxfermanager.cpp
@@ -223,8 +223,8 @@ LLXfer *LLXferManager::findXfer (U64 id, LLXfer *list_head)
223 223
224void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head) 224void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head)
225{ 225{
226 LLXfer *xferp; 226 // This function assumes that delp will only occur in the list
227 227 // zero or one times.
228 if (delp) 228 if (delp)
229 { 229 {
230 if (*list_head == delp) 230 if (*list_head == delp)
@@ -234,14 +234,14 @@ void LLXferManager::removeXfer (LLXfer *delp, LLXfer **list_head)
234 } 234 }
235 else 235 else
236 { 236 {
237 xferp = *list_head; 237 LLXfer *xferp = *list_head;
238 while (xferp->mNext) 238 while (xferp->mNext)
239 { 239 {
240 if (xferp->mNext == delp) 240 if (xferp->mNext == delp)
241 { 241 {
242 xferp->mNext = delp->mNext; 242 xferp->mNext = delp->mNext;
243 delete (delp); 243 delete (delp);
244 continue; 244 break;
245 } 245 }
246 xferp = xferp->mNext; 246 xferp = xferp->mNext;
247 } 247 }