diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/LAttachable.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/T2DLL/LAttachable.cpp b/src/T2DLL/LAttachable.cpp index 9700c4d..31f3aaa 100644 --- a/src/T2DLL/LAttachable.cpp +++ b/src/T2DLL/LAttachable.cpp @@ -48,11 +48,11 @@ LAttachable::LAttachable(const LAttachable& other) { /*virtual*/ void LAttachable::RemoveAllAttachments() { if (mAttachments) { LArrayIterator iter(*mAttachments); - LAttachment *attachment; + LAttachment *theAttachment; - while (iter.Next(&attachment)) { - if (attachment->GetOwnerHost() == this) { - delete attachment; + while (iter.Next(&theAttachment)) { + if (theAttachment->GetOwnerHost() == this) { + delete theAttachment; iter.Reset(); } } @@ -66,10 +66,10 @@ LAttachable::LAttachable(const LAttachable& other) { BOOL result = true; if (mAttachments) { LArrayIterator iter(*mAttachments); - LAttachment *attachment; + LAttachment *theAttachment; - while (iter.Next(&attachment)) { - result = result & attachment->Execute(message, data); + while (iter.Next(&theAttachment)) { + result = result & theAttachment->Execute(message, data); } } return result; |