mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-05-13 08:57:27 +00:00
Exporting NS_NewHTMLNullSink() and adding NS_INIT_REFCNT to the constructor.
This commit is contained in:
parent
3308104209
commit
24d2d8fe89
@ -86,7 +86,7 @@ protected:
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
nsresult
|
||||
NS_HTMLPARS nsresult
|
||||
NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult)
|
||||
{
|
||||
nsHTMLNullSink *it = new nsHTMLNullSink();
|
||||
@ -105,6 +105,7 @@ NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult)
|
||||
* @return
|
||||
*/
|
||||
nsHTMLNullSink::nsHTMLNullSink() : nsIHTMLContentSink(), mTitle("") {
|
||||
NS_INIT_REFCNT();
|
||||
mNodeStackPos=0;
|
||||
memset(mNodeStack,0,sizeof(mNodeStack));
|
||||
}
|
||||
|
@ -208,6 +208,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
extern nsresult NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult);
|
||||
extern NS_HTMLPARS nsresult NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult);
|
||||
|
||||
#endif /* nsIHTMLContentSink_h___ */
|
||||
|
@ -86,7 +86,7 @@ protected:
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
nsresult
|
||||
NS_HTMLPARS nsresult
|
||||
NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult)
|
||||
{
|
||||
nsHTMLNullSink *it = new nsHTMLNullSink();
|
||||
@ -105,6 +105,7 @@ NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult)
|
||||
* @return
|
||||
*/
|
||||
nsHTMLNullSink::nsHTMLNullSink() : nsIHTMLContentSink(), mTitle("") {
|
||||
NS_INIT_REFCNT();
|
||||
mNodeStackPos=0;
|
||||
memset(mNodeStack,0,sizeof(mNodeStack));
|
||||
}
|
||||
|
@ -208,6 +208,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
extern nsresult NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult);
|
||||
extern NS_HTMLPARS nsresult NS_NewHTMLNullSink(nsIContentSink** aInstancePtrResult);
|
||||
|
||||
#endif /* nsIHTMLContentSink_h___ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user