KDE/kdelibs/khtml/rendering

View: New views
1 Messages — Rating Filter:   Alert me  

KDE/kdelibs/khtml/rendering

by Bugzilla from jtamate@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SVN commit 1039021 by jtamate:

http://reviewboard.kde.org/r/1928/#review2763
initialize variables (less valgrind warnings)

 M  +3 -3      render_box.cpp  
 M  +4 -4      render_flow.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_box.cpp #1039020:1039021
@@ -2424,7 +2424,7 @@
         return 0;
     int bottom = m_height;
     if (isRelPositioned()) {
-        int x;
+        int x = 0;
         relativePositionOffset(x, bottom);
     }
     return bottom;
@@ -2436,7 +2436,7 @@
         return 0;
     int right = m_width;
     if (isRelPositioned()) {
-        int y;
+        int y = 0;
         relativePositionOffset(right, y);
     }
     return right;
@@ -2448,7 +2448,7 @@
         return m_width;
     int left = 0;
     if (isRelPositioned()) {
-        int y;
+        int y = 0;
         relativePositionOffset(left, y);
     }
     return left;
--- trunk/KDE/kdelibs/khtml/rendering/render_flow.cpp #1039020:1039021
@@ -497,7 +497,7 @@
     }
 
     if (includeSelf && isRelPositioned()) {
-        int x;
+        int x = 0;
         relativePositionOffset(x, bottom);
     }
 
@@ -522,7 +522,7 @@
     }
 
     if (includeSelf && isRelPositioned()) {
-        int y;
+        int y = 0;
         relativePositionOffset(right, y);
     }
 
@@ -547,7 +547,7 @@
     }
 
     if (includeSelf && isRelPositioned()) {
-        int y;
+        int y = 0;
         relativePositionOffset(left, y);
     }
 
@@ -572,7 +572,7 @@
     }
 
     if (includeSelf && isRelPositioned()) {
-        int x;
+        int x = 0;
         relativePositionOffset(x, top);
     }
 
_______________________________________________
Khtml-cvs mailing list
Khtml-cvs@...
https://mail.kde.org/mailman/listinfo/khtml-cvs