зеркало из https://github.com/mozilla/gecko-dev.git
missed two T-->nsISupports instances, which primary platforms didn't catch, since they weren't instantiated
This commit is contained in:
Родитель
20035843b1
Коммит
d5c96b7f3f
|
@ -632,7 +632,7 @@ class nsCOMPtr<nsISupports>
|
||||||
// ...and finally, anything else we might need to construct from
|
// ...and finally, anything else we might need to construct from
|
||||||
// can exploit the |nsCOMPtr_helper| facility
|
// can exploit the |nsCOMPtr_helper| facility
|
||||||
{
|
{
|
||||||
assign_from_helper(helper, NS_GET_IID(T));
|
assign_from_helper(helper, NS_GET_IID(nsISupports));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -670,7 +670,7 @@ class nsCOMPtr<nsISupports>
|
||||||
// ...and finally, anything else we might need to assign from
|
// ...and finally, anything else we might need to assign from
|
||||||
// can exploit the |nsCOMPtr_helper| facility.
|
// can exploit the |nsCOMPtr_helper| facility.
|
||||||
{
|
{
|
||||||
assign_from_helper(rhs, NS_GET_IID(T));
|
assign_from_helper(rhs, NS_GET_IID(nsISupports));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -632,7 +632,7 @@ class nsCOMPtr<nsISupports>
|
||||||
// ...and finally, anything else we might need to construct from
|
// ...and finally, anything else we might need to construct from
|
||||||
// can exploit the |nsCOMPtr_helper| facility
|
// can exploit the |nsCOMPtr_helper| facility
|
||||||
{
|
{
|
||||||
assign_from_helper(helper, NS_GET_IID(T));
|
assign_from_helper(helper, NS_GET_IID(nsISupports));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -670,7 +670,7 @@ class nsCOMPtr<nsISupports>
|
||||||
// ...and finally, anything else we might need to assign from
|
// ...and finally, anything else we might need to assign from
|
||||||
// can exploit the |nsCOMPtr_helper| facility.
|
// can exploit the |nsCOMPtr_helper| facility.
|
||||||
{
|
{
|
||||||
assign_from_helper(rhs, NS_GET_IID(T));
|
assign_from_helper(rhs, NS_GET_IID(nsISupports));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче