Bug 1245113 - Fixed uninitialized variables warnings. r=ehsan

This commit is contained in:
Paul Bignier 2016-02-02 07:38:00 +01:00
parent 95b561f204
commit 22bb795314
3 changed files with 3 additions and 3 deletions

View File

@ -1480,7 +1480,7 @@ nsEditor::JoinNodes(nsINode& aLeftNode, nsINode& aRightNode)
parent->AsDOMNode());
}
nsresult result;
nsresult result = NS_OK;
RefPtr<JoinNodeTxn> txn = CreateTxnForJoinNode(aLeftNode, aRightNode);
if (txn) {
result = DoTransaction(txn);

View File

@ -547,7 +547,7 @@ nsHTMLEditor::BeginningOfDocument()
// Find first editable thingy
bool done = false;
nsCOMPtr<nsINode> curNode = rootElement.get(), selNode;
int32_t curOffset = 0, selOffset;
int32_t curOffset = 0, selOffset = 0;
while (!done) {
nsWSRunObject wsObj(this, curNode, curOffset);
int32_t visOffset = 0;

View File

@ -2754,7 +2754,7 @@ nsTextServicesDocument::GetUncollapsedSelection(nsITextServicesDocument::TSDBloc
nsCOMPtr<nsIDOMNode> startParent, endParent;
int32_t startOffset, endOffset;
int32_t rangeCount, tableCount, i;
int32_t e1s1, e1s2, e2s1, e2s2;
int32_t e1s1 = 0, e1s2 = 0, e2s1 = 0, e2s2 = 0;
OffsetEntry *eStart, *eEnd;
int32_t eStartOffset, eEndOffset;