[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Tue Jun 8 22:00:25 CEST 2004


CVS commit by arwalker: 

Removed compiler warnings.


  M +6 -5      kstplotdialog_i.cpp   1.43


--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp  #1.42:1.43
@@ -77,6 +77,6 @@ const LegendLayout LegendLayouts[] = {
 };
 
-const int iNumLegendLayouts = sizeof( LegendLayouts ) / sizeof( LegendLayout );
-const int iNumLegendAlignments = sizeof( LegendAlignments ) / sizeof( LegendAlignment );
+const unsigned int iNumLegendLayouts = sizeof( LegendLayouts ) / sizeof( LegendLayout );
+const unsigned int iNumLegendAlignments = sizeof( LegendAlignments ) / sizeof( LegendAlignment );
 
 /*
@@ -91,4 +91,5 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
 : KstPlotDialog(parent, name, modal, fl ) {
   QString str;
+  unsigned int i;
 
   doc = in_doc;
@@ -189,5 +190,5 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
   LegendPositionLabel->hide();
   LegendPosition->setEditable(false);
-  for (int i = 0; i < iNumLegendLayouts; i++) {
+  for (i = 0; i < iNumLegendLayouts; i++) {
     str = LegendLayouts[i].Label;
     LegendPosition->insertItem(str);
@@ -195,5 +196,5 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
 
   LegendAlignment->setEditable(false);
-  for (int i = 0; i < iNumLegendAlignments; i++) {
+  for (i = 0; i < iNumLegendAlignments; i++) {
     str = LegendAlignments[i].Label;
     LegendAlignment->insertItem(str);





More information about the Kst mailing list