mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 15:02:06 +01:00
Codefix: Add missing 'this->' in ScriptList (#14747)
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
|||||||
this->item_next = *this->bucket_list_iter;
|
this->item_next = *this->bucket_list_iter;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ public:
|
|||||||
if (this->IsEnd()) return 0;
|
if (this->IsEnd()) return 0;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ public:
|
|||||||
|
|
||||||
/* If we remove the 'next' item, skip to the next */
|
/* If we remove the 'next' item, skip to the next */
|
||||||
if (item == this->item_next) {
|
if (item == this->item_next) {
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -194,7 +194,7 @@ public:
|
|||||||
this->item_next = *this->bucket_list_iter;
|
this->item_next = *this->bucket_list_iter;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ public:
|
|||||||
if (this->IsEnd()) return 0;
|
if (this->IsEnd()) return 0;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@ public:
|
|||||||
|
|
||||||
/* If we remove the 'next' item, skip to the next */
|
/* If we remove the 'next' item, skip to the next */
|
||||||
if (item == this->item_next) {
|
if (item == this->item_next) {
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -277,7 +277,7 @@ public:
|
|||||||
this->item_next = this->item_iter->first;
|
this->item_next = this->item_iter->first;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
++this->item_iter;
|
++this->item_iter;
|
||||||
if (this->item_iter != this->list->items.end()) item_next = this->item_iter->first;
|
if (this->item_iter != this->list->items.end()) this->item_next = this->item_iter->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
SQInteger Next() override
|
SQInteger Next() override
|
||||||
@@ -304,7 +304,7 @@ public:
|
|||||||
if (this->IsEnd()) return 0;
|
if (this->IsEnd()) return 0;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,7 +314,7 @@ public:
|
|||||||
|
|
||||||
/* If we remove the 'next' item, skip to the next */
|
/* If we remove the 'next' item, skip to the next */
|
||||||
if (item == this->item_next) {
|
if (item == this->item_next) {
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -351,7 +351,7 @@ public:
|
|||||||
this->item_next = this->item_iter->first;
|
this->item_next = this->item_iter->first;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
--this->item_iter;
|
--this->item_iter;
|
||||||
}
|
}
|
||||||
if (this->item_iter != this->list->items.end()) item_next = this->item_iter->first;
|
if (this->item_iter != this->list->items.end()) this->item_next = this->item_iter->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
SQInteger Next() override
|
SQInteger Next() override
|
||||||
@@ -383,7 +383,7 @@ public:
|
|||||||
if (this->IsEnd()) return 0;
|
if (this->IsEnd()) return 0;
|
||||||
|
|
||||||
SQInteger item_current = this->item_next;
|
SQInteger item_current = this->item_next;
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return item_current;
|
return item_current;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -393,7 +393,7 @@ public:
|
|||||||
|
|
||||||
/* If we remove the 'next' item, skip to the next */
|
/* If we remove the 'next' item, skip to the next */
|
||||||
if (item == this->item_next) {
|
if (item == this->item_next) {
|
||||||
FindNext();
|
this->FindNext();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -763,7 +763,7 @@ void ScriptList::RemoveList(ScriptList *list)
|
|||||||
this->modifications++;
|
this->modifications++;
|
||||||
|
|
||||||
if (list == this) {
|
if (list == this) {
|
||||||
Clear();
|
this->Clear();
|
||||||
} else {
|
} else {
|
||||||
for (const auto &item : list->items) {
|
for (const auto &item : list->items) {
|
||||||
this->RemoveItem(item.first);
|
this->RemoveItem(item.first);
|
||||||
|
|||||||
Reference in New Issue
Block a user