summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartSeriesCollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDChartSeriesCollection.cpp')
-rw-r--r--libkdchart/KDChartSeriesCollection.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libkdchart/KDChartSeriesCollection.cpp b/libkdchart/KDChartSeriesCollection.cpp
index 212504e..333917b 100644
--- a/libkdchart/KDChartSeriesCollection.cpp
+++ b/libkdchart/KDChartSeriesCollection.cpp
@@ -135,11 +135,7 @@ double KDChartSeriesCollection::maxValue( int coordinate ) const
bool first_max = true;
// find the first max
-#if COMPAT_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); i != (*this).end(); i ++ )
{
double temp = (*i)->maxValue(coordinate, ok);
@@ -166,11 +162,7 @@ double KDChartSeriesCollection::minValue( int coordinate ) const
double result = 0; // if no valid min/max, then this is the default
// find the first min
-#if COMPAT_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); !ok && i != (*this).end(); i ++ )
result = (*i)->minValue(coordinate, ok);
@@ -189,11 +181,7 @@ double KDChartSeriesCollection::minValue( int coordinate ) const
unsigned int KDChartSeriesCollection::indexOf( KDChartBaseSeries *series )
{
unsigned int index = 0;
-#if COMPAT_TQT_VERSION >= 0x030000
TQValueVector<KDChartBaseSeries *>::const_iterator i;
-#else
- TQArray<KDChartBaseSeries *>::ConstIterator i;
-#endif
for ( i = (*this).begin(); i != (*this).end(); i ++, index ++ )
if ( *i == series )
break;