added ref count init macro to handler constructor. hooked up the newUrl method to set the out nsIUrl param.

This commit is contained in:
valeski%netscape.com 1999-04-28 20:01:02 +00:00
Родитель f8e06ec7f0
Коммит 7d83c0ee79
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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;
}