mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:32:56 +00:00
[RAPPS] Replace pointer array with object array in parts related to app DL.
This commit is contained in:
parent
11baa0d723
commit
c9aa1915df
6 changed files with 13 additions and 17 deletions
|
@ -411,15 +411,15 @@ CAvailableApplicationInfo* CAvailableApps::FindInfo(const ATL::CStringW& szAppNa
|
|||
return NULL;
|
||||
}
|
||||
|
||||
ATL::CSimpleArray<CAvailableApplicationInfo*> CAvailableApps::FindInfoList(const ATL::CSimpleArray<ATL::CStringW> &arrAppsNames) const
|
||||
ATL::CSimpleArray<CAvailableApplicationInfo> CAvailableApps::FindInfoList(const ATL::CSimpleArray<ATL::CStringW> &arrAppsNames) const
|
||||
{
|
||||
ATL::CSimpleArray<CAvailableApplicationInfo*> result;
|
||||
ATL::CSimpleArray<CAvailableApplicationInfo> result;
|
||||
for (INT i = 0; i < arrAppsNames.GetSize(); ++i)
|
||||
{
|
||||
CAvailableApplicationInfo* Info = FindInfo(arrAppsNames[i]);
|
||||
if (Info)
|
||||
{
|
||||
result.Add(Info);
|
||||
result.Add(*Info);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue