Bug 504172 useless null check of first in nsXULPopupManager::Rollup

r=roc
This commit is contained in:
timeless@mozdev.org 2009-07-22 17:31:02 -05:00
Родитель c0dcc2949e
Коммит fea2f9d71a
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -190,8 +190,7 @@ nsXULPopupManager::Rollup(PRUint32 aCount, nsIContent** aLastRolledUp)
nsMenuChainItem* first = item;
while (first->GetParent())
first = first->GetParent();
if (first)
NS_ADDREF(*aLastRolledUp = first->Content());
NS_ADDREF(*aLastRolledUp = first->Content());
}
// if a number of popups to close has been specified, determine the last