[PALEMOON] use nsresult instead of NS_METHOD in nsFeedSniffer

This commit is contained in:
NTD 2018-04-04 07:49:29 -04:00 • committed by Roy Tam
commit 0a2d226e8d
2 changed files with 9 additions and 9 deletions

View file

@ -135,7 +135,7 @@ FindChar(char c, const char *begin, const char *end)
* it's possible that someone embedded one of these tags inside a document of * it's possible that someone embedded one of these tags inside a document of
* another type, e.g. a HTML document, and we don't want to show the preview * another type, e.g. a HTML document, and we don't want to show the preview
* page if the document isn't actually a feed. * page if the document isn't actually a feed.
* *
* @param start * @param start
* The beginning of the data being sniffed * The beginning of the data being sniffed
* @param end * @param end
@ -331,7 +331,7 @@ nsFeedSniffer::OnStartRequest(nsIRequest* request, nsISupports* context)
return NS_OK; return NS_OK;
} }
NS_METHOD nsresult
nsFeedSniffer::AppendSegmentToString(nsIInputStream* inputStream, nsFeedSniffer::AppendSegmentToString(nsIInputStream* inputStream,
void* closure, void* closure,
const char* rawSegment, const char* rawSegment,

View file

@ -10,7 +10,7 @@
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
class nsFeedSniffer final : public nsIContentSniffer, class nsFeedSniffer final : public nsIContentSniffer,
nsIStreamListener nsIStreamListener
{ {
public: public:
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
@ -18,12 +18,12 @@ public:
NS_DECL_NSIREQUESTOBSERVER NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER NS_DECL_NSISTREAMLISTENER
static NS_METHOD AppendSegmentToString(nsIInputStream* inputStream, static nsresult AppendSegmentToString(nsIInputStream* inputStream,
void* closure, void* closure,
const char* rawSegment, const char* rawSegment,
uint32_t toOffset, uint32_t toOffset,
uint32_t count, uint32_t count,
uint32_t* writeCount); uint32_t* writeCount);
protected: protected:
~nsFeedSniffer() {} ~nsFeedSniffer() {}