Switch to FileDownloader from core

This commit is contained in:
Oleg Korshul
2018-04-19 18:12:34 +03:00
parent 593313cedb
commit 63be78f331
5 changed files with 38 additions and 14 deletions

View File

@ -55,10 +55,10 @@ namespace NSFileDownloader
{
static bool IsNeedDownload(const std::wstring& FilePath)
{
int n1 = FilePath.find(L"www.");
int n2 = FilePath.find(L"http://");
int n3 = FilePath.find(L"ftp://");
int n4 = FilePath.find(L"https://");
std::wstring::size_type n1 = FilePath.find(L"www.");
std::wstring::size_type n2 = FilePath.find(L"http://");
std::wstring::size_type n3 = FilePath.find(L"ftp://");
std::wstring::size_type n4 = FilePath.find(L"https://");
if (n1 != std::wstring::npos && n1 < 10)
return true;