diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
commit | c2efba6907fab934a04959b9bb644cf7141cc955 (patch) | |
tree | c047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2TemplatePluginDB.cpp | |
parent | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff) | |
download | t2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip |
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2TemplatePluginDB.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/T2DLL/T2TemplatePluginDB.cpp b/src/T2DLL/T2TemplatePluginDB.cpp index 7b7b94c..f981d37 100644 --- a/src/T2DLL/T2TemplatePluginDB.cpp +++ b/src/T2DLL/T2TemplatePluginDB.cpp @@ -16,16 +16,16 @@ void T2TemplatePluginDB::Regist(T2TemplatePlugin* plugin) { LArrayIterator iterator(*this); T2TemplatePluginList *list; - BOOL found = false; + BOOL added = false; - while (!found && iterator.Next(&list)) { + while (!added && iterator.Next(&list)) { if (list->GetPluginType() == plugin->GetType()) { list->Add(plugin); - found = true; + added = true; } } - if (!found) { + if (!added) { list = new T2TemplatePluginList(plugin->GetType()); list->Add(plugin); InsertItemsAt(1, mItemCount + 1, &list); @@ -35,9 +35,9 @@ void T2TemplatePluginDB::Regist(T2TemplatePlugin* plugin) { void T2TemplatePluginDB::Add(T2TemplatePluginList* list) { LArrayIterator iterator(*this); T2TemplatePluginList *existingList; - BOOL found = false; + BOOL added = false; - while (!found && iterator.Next(&existingList)) { + while (!added && iterator.Next(&existingList)) { if (existingList->GetPluginType() == list->GetPluginType()) { LArrayIterator pluginIterator(*list); T2TemplatePlugin *plugin; @@ -46,11 +46,11 @@ void T2TemplatePluginDB::Add(T2TemplatePluginList* list) { existingList->Add(plugin); } - found = true; + added = true; } } - if (!found) + if (!added) InsertItemsAt(1, mItemCount + 1, &list); } |