diff --git a/content/base/src/nsDocumentEncoder.cpp b/content/base/src/nsDocumentEncoder.cpp index bd6acb98907..1fd2c346573 100644 --- a/content/base/src/nsDocumentEncoder.cpp +++ b/content/base/src/nsDocumentEncoder.cpp @@ -123,7 +123,7 @@ nsHTMLEncoder::PrettyPrint(PRBool aYes) return NS_ERROR_NOT_IMPLEMENTED; } -NS_IMETHODIMP +nsresult NS_NewHTMLEncoder(nsIDocumentEncoder** aResult) { *aResult = new nsHTMLEncoder; diff --git a/layout/base/src/nsDocumentEncoder.cpp b/layout/base/src/nsDocumentEncoder.cpp index bd6acb98907..1fd2c346573 100644 --- a/layout/base/src/nsDocumentEncoder.cpp +++ b/layout/base/src/nsDocumentEncoder.cpp @@ -123,7 +123,7 @@ nsHTMLEncoder::PrettyPrint(PRBool aYes) return NS_ERROR_NOT_IMPLEMENTED; } -NS_IMETHODIMP +nsresult NS_NewHTMLEncoder(nsIDocumentEncoder** aResult) { *aResult = new nsHTMLEncoder;