Bug 1422541 - port bug 1420954 to mailnews [Make nsIURIMutator setters return nsIURIMutator]. rs=bustage-fix

This commit is contained in:
Jorg K 2017-12-06 11:08:58 +01:00
Родитель 09ed1adeb7
Коммит 6894ea6448
4 изменённых файлов: 12 добавлений и 8 удалений

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

@ -45,7 +45,7 @@ public:
, public BaseURIMutator<nsLDAPURL>
{
NS_DECL_ISUPPORTS
NS_FORWARD_SAFE_NSIURISETTERS(mURI)
NS_FORWARD_SAFE_NSIURISETTERS_RET(mURI)
NS_IMETHOD Deserialize(const mozilla::ipc::URIParams& aParams) override
{
@ -63,8 +63,9 @@ public:
return NS_OK;
}
NS_IMETHOD SetSpec(const nsACString & aSpec) override
NS_IMETHOD SetSpec(const nsACString & aSpec, nsIURIMutator** aMutator) override
{
NS_ADDREF(*aMutator = this);
return InitFromSpec(aSpec);
}

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

@ -26,7 +26,7 @@ public:
, public BaseURIMutator<nsAddbookUrl>
{
NS_DECL_ISUPPORTS
NS_FORWARD_SAFE_NSIURISETTERS(mURI)
NS_FORWARD_SAFE_NSIURISETTERS_RET(mURI)
NS_IMETHOD Deserialize(const mozilla::ipc::URIParams& aParams) override
{
@ -44,8 +44,9 @@ public:
return NS_OK;
}
NS_IMETHOD SetSpec(const nsACString & aSpec) override
NS_IMETHOD SetSpec(const nsACString & aSpec, nsIURIMutator** aMutator) override
{
NS_ADDREF(*aMutator = this);
return InitFromSpec(aSpec);
}

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

@ -56,7 +56,7 @@ public:
, public BaseURIMutator<nsMsgMailNewsUrl>
{
NS_DECL_ISUPPORTS
NS_FORWARD_SAFE_NSIURISETTERS(mURI)
NS_FORWARD_SAFE_NSIURISETTERS_RET(mURI)
NS_IMETHOD Deserialize(const mozilla::ipc::URIParams& aParams) override
{
@ -74,8 +74,9 @@ public:
return NS_OK;
}
NS_IMETHOD SetSpec(const nsACString & aSpec) override
NS_IMETHOD SetSpec(const nsACString & aSpec, nsIURIMutator** aMutator) override
{
NS_ADDREF(*aMutator = this);
return InitFromSpec(aSpec);
}

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

@ -33,7 +33,7 @@ public:
, public BaseURIMutator<nsMailtoUrl>
{
NS_DECL_ISUPPORTS
NS_FORWARD_SAFE_NSIURISETTERS(mURI)
NS_FORWARD_SAFE_NSIURISETTERS_RET(mURI)
NS_IMETHOD Deserialize(const mozilla::ipc::URIParams& aParams) override
{
@ -51,8 +51,9 @@ public:
return NS_OK;
}
NS_IMETHOD SetSpec(const nsACString & aSpec) override
NS_IMETHOD SetSpec(const nsACString & aSpec, nsIURIMutator** aMutator) override
{
NS_ADDREF(*aMutator = this);
return InitFromSpec(aSpec);
}