Browse Source

adblock: exclude unused part from compilation, add missing return paths

master
roytam1 5 years ago
parent
commit
3c48801050
  1. 10
      k-meleon/kplugins/adblock/adblock.cpp

10
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()

Loading…
Cancel
Save