[RAPPS] Replace pointer array with object array in parts related to app DL.

This commit is contained in:
Alexander Shaposhnikov 2017-10-22 00:00:50 +03:00
parent 11baa0d723
commit c9aa1915df
No known key found for this signature in database
GPG key ID: 9EEC655FCB0EDE9F
6 changed files with 13 additions and 17 deletions

View file

@ -830,20 +830,15 @@ end:
return 0;
}
BOOL CDownloadManager::DownloadListOfApplications(const ATL::CSimpleArray<CAvailableApplicationInfo*>& AppsList, BOOL bIsModal)
BOOL CDownloadManager::DownloadListOfApplications(const ATL::CSimpleArray<CAvailableApplicationInfo>& AppsList, BOOL bIsModal)
{
if (AppsList.GetSize() == 0)
{
return FALSE;
}
// Initialize shared variables
for (INT i = 0; i < AppsList.GetSize(); ++i)
{
if (AppsList[i])
{
AppsToInstallList.Add(*(AppsList[i]));
}
AppsToInstallList.Add(AppsList[i]); // implicit conversion to DownloadInfo
}
// Create a dialog and issue a download process