Adding do_QueryInterface() wrapper for nsCOMPtr carpool

This commit is contained in:
mcafee%netscape.com 1999-02-17 02:31:01 +00:00
Родитель 49b7e9fd37
Коммит 221280d06c
1 изменённых файлов: 2 добавлений и 2 удалений

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

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