[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
Ralf.Habacker at freenet.de
Mon Aug 27 07:24:02 UTC 2007
SVN commit 705103 by habacker:
initialize stack variables
M +4 -4 umlwidgetcontroller.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umlwidgetcontroller.cpp #705102:705103
@@ -446,7 +446,7 @@
//TODO refactor with AlignToolbar method.
int UMLWidgetController::getSmallestX(const UMLWidgetList &widgetList) {
- int smallestX ;
+ int smallestX = 0;
int i = 1;
foreach ( UMLWidget* widget , widgetList ) {
if ( i == 1 ) {
@@ -466,7 +466,7 @@
//TODO refactor with AlignToolbar method.
int UMLWidgetController::getSmallestY(const UMLWidgetList &widgetList) {
- int smallestY ;
+ int smallestY = 0;
int i = 1;
foreach ( UMLWidget* widget , widgetList ) {
if ( i == 1 ) {
@@ -487,7 +487,7 @@
//TODO refactor with AlignToolbar method.
int UMLWidgetController::getBiggestX(const UMLWidgetList &widgetList) {
- int biggestX ;
+ int biggestX = 0;
int i = 1;
foreach ( UMLWidget* widget , widgetList ) {
@@ -509,7 +509,7 @@
//TODO refactor with AlignToolbar method.
int UMLWidgetController::getBiggestY(const UMLWidgetList &widgetList) {
- int biggestY ;
+ int biggestY = 0;
int i = 1;
foreach ( UMLWidget* widget , widgetList ) {
if ( i == 1 ) {
More information about the umbrello-devel
mailing list