[PALEMOON] use nsresult instead of NS_METHOD in nsFeedSniffer

pull/1/head
NTD 4 years ago committed by Roy Tam
parent fda68c9bfe
commit 0a2d226e8d
  1. 4
      application/palemoon/components/feeds/nsFeedSniffer.cpp
  2. 14
      application/palemoon/components/feeds/nsFeedSniffer.h

@ -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
* 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.
*
*
* @param start
* The beginning of the data being sniffed
* @param end
@ -331,7 +331,7 @@ nsFeedSniffer::OnStartRequest(nsIRequest* request, nsISupports* context)
return NS_OK;
}
NS_METHOD
nsresult
nsFeedSniffer::AppendSegmentToString(nsIInputStream* inputStream,
void* closure,
const char* rawSegment,

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

Loading…
Cancel
Save