Bug 422484: Add parens around macro if conditions. Patch by David Mandelin <dmandelin@mozilla.com> r=benjamin a1.9=dsicore

This commit is contained in:
dholbert@cs.stanford.edu 2008-03-12 14:47:11 -07:00
Родитель 17b85bf97b
Коммит 980a624d34
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1359,7 +1359,7 @@ nsSVGGlyphFrame::nsSVGAutoGlyphHelperContext::nsSVGAutoGlyphHelperContext(
Init(aSource, aText);
nsresult rv = aSource->GetCharacterPosition(mCT, aText, cp);
if NS_FAILED(rv) {
if (NS_FAILED(rv)) {
NS_WARNING("failed to get character position data");
}
}

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

@ -1558,7 +1558,7 @@ nsXULPopupManager::HandleKeyboardNavigation(PRUint32 aKeyCode)
mActiveMenuBar->ChangeMenuItem(nextItem, PR_TRUE);
return PR_TRUE;
}
else if NS_DIRECTION_IS_BLOCK(theDirection) {
else if (NS_DIRECTION_IS_BLOCK(theDirection)) {
// Open the menu and select its first item.
if (currentMenu) {
nsCOMPtr<nsIContent> content = currentMenu->GetContent();