@@ -670,12 +670,12 @@ void CWebCore::GetFilterEntriesByType ( std::vector<std::pair<SString, bool>>& o
670
670
}
671
671
}
672
672
673
- void CWebCore::StaticFetchRevisionFinished ( char * pCompletedData, size_t completedLength, void *pObj, bool bSuccess, int iErrorCode )
673
+ void CWebCore::StaticFetchRevisionFinished ( const SHttpDownloadResult& result )
674
674
{
675
- CWebCore* pWebCore = static_cast < CWebCore* > ( pObj );
676
- if ( bSuccess )
675
+ CWebCore* pWebCore = static_cast < CWebCore* > ( result. pObj );
676
+ if ( result. bSuccess )
677
677
{
678
- SString strData = pCompletedData ;
678
+ SString strData = result. pData ;
679
679
SString strWhiteRevision, strBlackRevision;
680
680
strData.Split ( " ;" , &strWhiteRevision, &strBlackRevision );
681
681
@@ -701,12 +701,12 @@ void CWebCore::StaticFetchRevisionFinished ( char* pCompletedData, size_t comple
701
701
}
702
702
}
703
703
704
- void CWebCore::StaticFetchWhitelistFinished ( char * pCompletedData, size_t completedLength, void *pObj, bool bSuccess, int iErrorCode )
704
+ void CWebCore::StaticFetchWhitelistFinished ( const SHttpDownloadResult& result )
705
705
{
706
- if ( !bSuccess )
706
+ if ( !result. bSuccess )
707
707
return ;
708
708
709
- CWebCore* pWebCore = static_cast < CWebCore* > ( pObj );
709
+ CWebCore* pWebCore = static_cast < CWebCore* > ( result. pObj );
710
710
if ( !pWebCore->m_pXmlConfig )
711
711
return ;
712
712
@@ -715,7 +715,7 @@ void CWebCore::StaticFetchWhitelistFinished ( char* pCompletedData, size_t compl
715
715
716
716
CXMLNode* pRootNode = pWebCore->m_pXmlConfig ->GetRootNode ();
717
717
std::vector<SString> whitelist;
718
- SString strData = pCompletedData ;
718
+ SString strData = result. pData ;
719
719
strData.Split ( " ;" , whitelist );
720
720
CXMLNode* pListNode = pRootNode->FindSubNode ( " globalwhitelist" );
721
721
if ( !pListNode )
@@ -744,12 +744,12 @@ void CWebCore::StaticFetchWhitelistFinished ( char* pCompletedData, size_t compl
744
744
#endif
745
745
}
746
746
747
- void CWebCore::StaticFetchBlacklistFinished ( char * pCompletedData, size_t completedLength, void *pObj, bool bSuccess, int iErrorCode )
747
+ void CWebCore::StaticFetchBlacklistFinished ( const SHttpDownloadResult& result )
748
748
{
749
- if ( !bSuccess )
749
+ if ( !result. bSuccess )
750
750
return ;
751
751
752
- CWebCore* pWebCore = static_cast < CWebCore* > ( pObj );
752
+ CWebCore* pWebCore = static_cast < CWebCore* > ( result. pObj );
753
753
if ( !pWebCore->m_pXmlConfig )
754
754
return ;
755
755
@@ -758,7 +758,7 @@ void CWebCore::StaticFetchBlacklistFinished ( char* pCompletedData, size_t compl
758
758
759
759
CXMLNode* pRootNode = pWebCore->m_pXmlConfig ->GetRootNode ();
760
760
std::vector<SString> blacklist;
761
- SString strData = pCompletedData ;
761
+ SString strData = result. pData ;
762
762
strData.Split ( " ;" , blacklist );
763
763
CXMLNode* pListNode = pRootNode->FindSubNode ( " globalblacklist" );
764
764
if ( !pListNode )
0 commit comments