From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/CPluginInfoArray.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/T2DLL/CPluginInfoArray.cpp') diff --git a/src/T2DLL/CPluginInfoArray.cpp b/src/T2DLL/CPluginInfoArray.cpp index ea6f34b..ec38e3d 100644 --- a/src/T2DLL/CPluginInfoArray.cpp +++ b/src/T2DLL/CPluginInfoArray.cpp @@ -11,24 +11,23 @@ CPluginInfoArray::CPluginInfoArray(BOOL ownsPluginInfo) /*virtual*/ CPluginInfoArray::~CPluginInfoArray() { if (mOwnsPluginInfo) { + CPluginInfo *info; LArrayIterator iter(*this); - CPluginInfo *pluginInfo; - while (iter.Next(&pluginInfo)) - delete pluginInfo; + while (iter.Next(&info)) + delete info; } } int CPluginInfoArray::GetUsedCount() { - int count = 0; - + CPluginInfo *info; + int numPlugins = 0; LArrayIterator iter(*this); - CPluginInfo *pluginInfo; - while (iter.Next(&pluginInfo)) { - if (pluginInfo->IsUsed()) - count++; + while (iter.Next(&info)) { + if (info->IsUsed()) + numPlugins++; } - return count; + return numPlugins; } -- cgit v1.2.3