Fix some possibly unitialized variables found by MSVC /W4
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 04:53:01 +0000 (04:53 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 04:53:01 +0000 (04:53 +0000)
Reviewed by John.

* rendering/bidi.cpp:
(WebCore::RenderBlock::layoutInlineChildren):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23904 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/bidi.cpp

index 504c47491cfbf7191bd8922d1adc48d2fb6992be..268f8588bdf85a669d60882b99d43d32b23e9c4f 100644 (file)
@@ -1,5 +1,14 @@
 2007-06-30  Adam Roben  <aroben@apple.com>
 
+        Fix some possibly unitialized variables found by MSVC /W4
+
+        Reviewed by John.
+
+        * rendering/bidi.cpp:
+        (WebCore::RenderBlock::layoutInlineChildren):
+
+2007-06-29  Adam Roben  <aroben@apple.com>
+
         Remove bogus cast found by MSVC /W4
 
         Reviewed by John and Oliver.
index 1d5f01190e5eaa73e806f99bbaed9d1a6e226f40..569f0c572f19e754efae08cf914c8f2efe50ec77 100644 (file)
@@ -1681,8 +1681,8 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i
         // if we determine that we're able to synchronize after handling all our dirty lines.
         BidiIterator cleanLineStart;
         BidiStatus cleanLineBidiStatus;
-        BidiContext* cleanLineBidiContext;
-        int endLineYPos;
+        BidiContext* cleanLineBidiContext = 0;
+        int endLineYPos = 0;
         RootInlineBox* endLine = (fullLayout || !startLine) ? 
                                  0 : determineEndPosition(startLine, cleanLineStart, cleanLineBidiStatus, cleanLineBidiContext, endLineYPos);
         if (endLine && cleanLineBidiContext)