summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverModuleList.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2MoverModuleList.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/T2DLL/T2MoverModuleList.cpp b/src/T2DLL/T2MoverModuleList.cpp
index f388435..9711ec4 100644
--- a/src/T2DLL/T2MoverModuleList.cpp
+++ b/src/T2DLL/T2MoverModuleList.cpp
@@ -15,11 +15,11 @@ T2MoverModuleList::T2MoverModuleList()
/*virtual*/ T2MoverModuleList::~T2MoverModuleList() {
LArrayIterator iterator(*this);
- T2MoverModule *moverModule = NULL;
+ T2MoverModule *theMoverModule = NULL;
- while (iterator.Next(&moverModule)) {
- if (moverModule)
- delete moverModule;
+ while (iterator.Next(&theMoverModule)) {
+ if (theMoverModule)
+ delete theMoverModule;
}
RemoveItemsAt(mItemCount, 1);
@@ -43,11 +43,11 @@ void T2MoverModuleList::AllClear() {
/*virtual*/ void T2MoverModuleList::Destruct(T2TowerDoc* towerDoc) {
LArrayIterator iterator(*this);
- T2MoverModule *moverModule = NULL;
+ T2MoverModule *theMoverModule = NULL;
- while (iterator.Next(&moverModule)) {
- if (moverModule)
- RemoveModule(towerDoc, moverModule);
+ while (iterator.Next(&theMoverModule)) {
+ if (theMoverModule)
+ RemoveModule(towerDoc, theMoverModule);
}
}
@@ -75,10 +75,10 @@ void T2MoverModuleList::AllClear() {
archive << mItemCount;
LArrayIterator iterator(*this);
- T2MoverModule *moverModule = NULL;
+ T2MoverModule *theMoverModule = NULL;
- while (iterator.Next(&moverModule))
- moverModule->Save(archive);
+ while (iterator.Next(&theMoverModule))
+ theMoverModule->Save(archive);
}
/*virtual*/ T2MoverModule* T2MoverModuleList::ConstructModule() {
@@ -96,22 +96,22 @@ unsigned int T2MoverModuleList::GetItemCount() {
}
/*static*/ T2MoverModuleList* T2MoverModuleList::ReadMMList(T2Archive& archive, T2TowerDoc* towerDoc) {
- T2MoverModuleList *list = NULL;
+ T2MoverModuleList *theList = NULL;
- DWORD code;
- archive >> code;
+ DWORD classID;
+ archive >> classID;
- if (code == '_MML')
- list = new T2MoverModuleList;
- else if (code == 'ElML')
- list = new T2ElvModuleList;
- else if (code == 'StML')
- list = new T2StairModuleList;
+ if (classID == '_MML')
+ theList = new T2MoverModuleList;
+ else if (classID == 'ElML')
+ theList = new T2ElvModuleList;
+ else if (classID == 'StML')
+ theList = new T2StairModuleList;
- if (list)
- list->Read(archive, towerDoc);
+ if (theList)
+ theList->Read(archive, towerDoc);
- return list;
+ return theList;
}
/*static*/ void T2MoverModuleList::WriteMMList(T2MoverModuleList* list, T2Archive& archive) {