зеркало из https://github.com/mozilla/gecko-dev.git
added ref count init macro to handler constructor. hooked up the newUrl method to set the out nsIUrl param.
This commit is contained in:
Родитель
f8e06ec7f0
Коммит
7d83c0ee79
|
@ -27,12 +27,11 @@ static NS_DEFINE_CID(kTypicalUrlCID, NS_TYPICALURL_CID);
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
nsFtpProtocolHandler::nsFtpProtocolHandler()
|
||||
{
|
||||
nsFtpProtocolHandler::nsFtpProtocolHandler() {
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
nsFtpProtocolHandler::~nsFtpProtocolHandler()
|
||||
{
|
||||
nsFtpProtocolHandler::~nsFtpProtocolHandler() {
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsFtpProtocolHandler, nsIProtocolHandler::GetIID());
|
||||
|
@ -91,6 +90,9 @@ nsFtpProtocolHandler::NewUrl(const char* aSpec,
|
|||
|
||||
rv = url->Init(aSpec, aBaseUrl);
|
||||
|
||||
*result = NS_STATIC_CAST(nsIUrl*, url);
|
||||
NS_ADDREF(*result);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче