summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TemplatePluginDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2TemplatePluginDB.cpp16
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);
}