Reviewed by John.
* editing/Editor.cpp:
(WebCore::Editor::advanceToNextMisspelling):
* html/HTMLParser.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23905
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2007-06-30 Adam Roben <aroben@apple.com>
+ Initialize two variables that MSVC /W4 isn't smart enough to realize always get initialized
+
+ Reviewed by John.
+
+ * editing/Editor.cpp:
+ (WebCore::Editor::advanceToNextMisspelling):
+ * html/HTMLParser.cpp:
+
+2007-06-29 Adam Roben <aroben@apple.com>
+
Fix some possibly unitialized variables found by MSVC /W4
Reviewed by John.
String badGrammarPhrase;
#ifndef BUILDING_ON_TIGER
- int grammarPhraseOffset;
+ int grammarPhraseOffset = 0;
GrammarDetail grammarDetail;
// Search for bad grammar that occurs prior to the next misspelled word (if any)
void HTMLParser::handleResidualStyleCloseTagAcrossBlocks(HTMLStackElem* elem)
{
- HTMLStackElem* maxElem;
+ HTMLStackElem* maxElem = 0;
bool finished = false;
while (!finished) {
// Find the outermost element that crosses over to a higher level. If there exists another higher-level