Bug 117418 nsWSRunObject.cpp:704: warning: `PRInt32 curStartOffset' might be used uninitialized in this function

r=akkana sr=brendan
This commit is contained in:
timeless%mac.com 2002-01-27 07:07:10 +00:00
Родитель b53af1f99c
Коммит 9a99556080
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -680,7 +680,6 @@ nsWSRunObject::GetWSNodes()
nsresult res = NS_OK;
nsCOMPtr<nsIDOMNode> blockParent, curStartNode, curEndNode;
PRInt32 curStartOffset, curEndOffset;
if (IsBlockNode(mNode)) blockParent = mNode;
else blockParent = mHTMLEditor->GetBlockNodeParent(mNode);
@ -726,10 +725,9 @@ nsWSRunObject::GetWSNodes()
// we didnt find beginning of whitespace. remember this text node
// (and offset 0) as the extent to which we have looked back.
curStartNode = mNode;
curStartOffset = 0;
}
}
PRInt32 curStartOffset=0;
nsCOMPtr<nsIDOMNode> priorNode;
while (!mStartNode)
{
@ -862,7 +860,7 @@ nsWSRunObject::GetWSNodes()
mStartReason = eThisBlock;
}
}
PRInt32 curEndOffset=0;
// then look ahead to find following ws nodes
if (mHTMLEditor->IsTextNode(mNode))
{