зеркало из https://github.com/mozilla/gecko-dev.git
Bug 504172 useless null check of first in nsXULPopupManager::Rollup
r=roc
This commit is contained in:
Родитель
c0dcc2949e
Коммит
fea2f9d71a
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче