diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/CPluginInfoArray.cpp | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/CPluginInfoArray.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
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; } |