Merge pull request #143 from Learath2/pr_cleanup

Some cleanup and a tiny fix.
This commit is contained in:
Dennis Felsing 2015-02-08 11:07:30 +01:00
commit ec8a4b005f
3 changed files with 1 additions and 3 deletions

View file

@ -99,7 +99,7 @@ bool CFetcher::FetchFile(CFetchTask *pTask)
if(pTask->m_pDest[i] == '/')
{
pTask->m_pDest[i] = '\0';
m_pStorage->CreateFolder(pTask->m_pDest, 2);
m_pStorage->CreateFolder(pTask->m_pDest, pTask->m_StorageType);
pTask->m_pDest[i] = '/';
}
}

View file

@ -21,7 +21,6 @@ public:
~CFetcher();
virtual void QueueAdd(CFetchTask *pTask, const char *pUrl, const char *pDest, int StorageType = 2, void *pUser = 0, COMPFUNC pfnCompCb = 0, PROGFUNC pfnProgCb = 0);
virtual long HTTPResponse(const char *pUrl);
static void FetcherThread(void *pUser);
bool FetchFile(CFetchTask *pTask);
static void WriteToFile(char *pData, size_t size, size_t nmemb, void *pFile);

View file

@ -53,7 +53,6 @@ class IFetcher : public IInterface
public:
virtual bool Init() = 0;
virtual void QueueAdd(CFetchTask *pTask,const char *pUrl, const char *pDest, int StorageType = 2, void *pUser = 0, COMPFUNC pfnCompCb = 0, PROGFUNC pfnProgCb = 0) = 0;
virtual long HTTPResponse(const char *pUrl) = 0;
};
#endif