mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
fix warnings. see bug #59673.
thanks to mozilla-bugs@nogin.org for the patch. r/sr=sspitzer
This commit is contained in:
parent
fd1a9d2975
commit
c3eabd1954
@ -567,15 +567,14 @@ NS_IMETHODIMP nsMsgDatabase::NotifyAnnouncerGoingAway(void)
|
||||
// on this notification
|
||||
PRUint32 count;
|
||||
m_ChangeListeners->Count(&count);
|
||||
for (PRInt32 i = count - 1; i >= 0 ; i--)
|
||||
for (PRUint32 i = count - 1; i >= 0 ; i--)
|
||||
{
|
||||
nsCOMPtr<nsIDBChangeListener> changeListener;
|
||||
m_ChangeListeners->QueryElementAt(i, NS_GET_IID(nsIDBChangeListener), (void **) getter_AddRefs(changeListener));
|
||||
nsresult rv;
|
||||
if (changeListener)
|
||||
rv = changeListener->OnAnnouncerGoingAway(this);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
if (changeListener) {
|
||||
nsresult rv = changeListener->OnAnnouncerGoingAway(this);
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user