зеркало из https://github.com/mozilla/gecko-dev.git
bug 664084 - set but unused nsresult in nsHTMLTableAccessible.cpp:1208 r=surkov
From 98228e034f021e8ab897537f0aa280e622cf2fc3 Mon Sep 17 00:00:00 2001 --- accessible/src/html/nsHTMLTableAccessible.cpp | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
This commit is contained in:
Родитель
0acb0405c0
Коммит
ab9151e423
|
@ -1212,13 +1212,9 @@ nsHTMLTableAccessible::RemoveRowsOrColumnsFromSelection(PRInt32 aIndex,
|
|||
const_cast<nsFrameSelection*>(presShell->ConstFrameSelection());
|
||||
|
||||
PRBool doUnselectRow = (aTarget == nsISelectionPrivate::TABLESELECTION_ROW);
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
PRInt32 count = 0;
|
||||
if (doUnselectRow)
|
||||
rv = GetColumnCount(&count);
|
||||
else
|
||||
rv = GetRowCount(&count);
|
||||
nsresult rv = doUnselectRow ? GetColumnCount(&count) : GetRowCount(&count);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
PRInt32 startRowIdx = doUnselectRow ? aIndex : 0;
|
||||
PRInt32 endRowIdx = doUnselectRow ? aIndex : count - 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче