зеркало из https://github.com/mozilla/gecko-dev.git
Adding do_QueryInterface() wrapper for nsCOMPtr carpool
This commit is contained in:
Родитель
49b7e9fd37
Коммит
221280d06c
|
@ -1018,7 +1018,7 @@ RDFGenericElementImpl::SetAttribute(PRInt32 aNameSpaceID,
|
|||
if (xulListener->mAttribute.EqualsIgnoreCase(aString))
|
||||
{
|
||||
// Set the attribute in the broadcast listener.
|
||||
nsCOMPtr<nsIContent> contentNode(xulListener->mListener);
|
||||
nsCOMPtr<nsIContent> contentNode(do_QueryInterface(xulListener->mListener));
|
||||
if (contentNode)
|
||||
{
|
||||
contentNode->SetAttribute(aNameSpaceID, aName, aValue, aNotify);
|
||||
|
@ -1101,7 +1101,7 @@ RDFGenericElementImpl::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBo
|
|||
if (xulListener->mAttribute.EqualsIgnoreCase(aString))
|
||||
{
|
||||
// Unset the attribute in the broadcast listener.
|
||||
nsCOMPtr<nsIContent> contentNode(xulListener->mListener);
|
||||
nsCOMPtr<nsIContent> contentNode(do_QueryInterface(xulListener->mListener));
|
||||
if (contentNode)
|
||||
{
|
||||
contentNode->UnsetAttribute(aNameSpaceID, aName, aNotify);
|
||||
|
|
Загрузка…
Ссылка в новой задаче