diff --git a/k-meleon/kplugins/adblock/adblock.cpp b/k-meleon/kplugins/adblock/adblock.cpp index ea2831ca..2b343628 100644 --- a/k-meleon/kplugins/adblock/adblock.cpp +++ b/k-meleon/kplugins/adblock/adblock.cpp @@ -812,6 +812,9 @@ extern nsresult NS_NewGenericFactory(nsIGenericFactory* *result, const nsModuleComponentInfo *info); using namespace std; + +#if 0 + #define BUFFERSIZE 4096 bool DownloadFile(string url, LPCSTR filename){ string request; // HTTP Header // @@ -903,6 +906,8 @@ bool DownloadFile(string url, LPCSTR filename){ return TRUE; } +#endif + #include "nsIWebBrowserPersist.h" #include "nsCWebBrowserPersist.h" #include "nsComponentManagerUtils.h" @@ -1034,7 +1039,7 @@ bool Subscriptions::_Download() dwnIt++; nsresult rv = persist->SaveURI(uri, nullptr, nullptr, 0, nullptr, nullptr, file, nullptr); NS_ENSURE_SUCCESS(rv, false); - + return true; } bool Subscriptions::Add(const char* s) @@ -1092,7 +1097,8 @@ bool InitSubs() } else s->Parse(); -delete s; + delete s; + return true; } BOOL Init()