зеркало из https://github.com/mozilla/pjs.git
move GetInstance from the header to the CPP since HPUX was throwing an
unresolved symbol.
This commit is contained in:
Родитель
9eeb923bc3
Коммит
eafcae3901
|
@ -394,6 +394,16 @@ nsresult nsHTTPHandler::RequestTransport(nsIURI* i_Uri,
|
|||
return rv;
|
||||
}
|
||||
|
||||
|
||||
static nsHTTPHandler *
|
||||
nsHTTPHandler::GetInstance(void)
|
||||
{
|
||||
static nsHTTPHandler* pHandler = new nsHTTPHandler();
|
||||
NS_ADDREF(pHandler);
|
||||
return pHandler;
|
||||
};
|
||||
|
||||
|
||||
nsresult nsHTTPHandler::ReleaseTransport(nsIChannel* i_pTrans)
|
||||
{
|
||||
nsresult rv;
|
||||
|
|
|
@ -112,12 +112,7 @@ public:
|
|||
NS_IMETHOD FollowRedirects(PRBool bFollow=PR_TRUE);
|
||||
|
||||
// Singleton function
|
||||
static nsHTTPHandler* GetInstance(void)
|
||||
{
|
||||
static nsHTTPHandler* pHandler = new nsHTTPHandler();
|
||||
NS_ADDREF(pHandler);
|
||||
return pHandler;
|
||||
};
|
||||
static nsHTTPHandler* GetInstance(void);
|
||||
|
||||
// Functions from nsIHTTPProtocolHandler
|
||||
NS_DECL_NSIHTTPPROTOCOLHANDLER
|
||||
|
|
Загрузка…
Ссылка в новой задаче