mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245113 - Fixed uninitialized variables warnings. r=ehsan
This commit is contained in:
parent
bb5df2a5e5
commit
4ce456ef8b
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user