From: Pino Toscano Date: Mon, 31 Oct 2005 09:55:23 +0000 (+0000) Subject: fix a range; small headers cleanup X-Git-Tag: v3.80.2~241 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=f05aee61e0d26c5a20b8b413b720e6572e7688f6;p=libqmvoc.git fix a range; small headers cleanup svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=476014 --- diff --git a/kdeeduplot/kplotobject.cpp b/kdeeduplot/kplotobject.cpp index 2ca2780..e29c4ef 100644 --- a/kdeeduplot/kplotobject.cpp +++ b/kdeeduplot/kplotobject.cpp @@ -15,11 +15,10 @@ * * ***************************************************************************/ -#include -#include -#include #include "kplotobject.h" +#include + KPlotObject::KPlotObject() { KPlotObject( "", Qt::white, POINTS ); } @@ -38,7 +37,7 @@ KPlotObject::~KPlotObject() } void KPlotObject::removePoint( int index ) { - if ( ( index < 1 ) || ( index > pList.count() - 1 ) ) { + if ( ( index < 0 ) || ( index >= pList.count() ) ) { kdWarning() << "Ignoring attempt to remove non-existent plot object" << endl; return; } diff --git a/kdeeduplot/kplotobject.h b/kdeeduplot/kplotobject.h index ae01e44..86593f4 100644 --- a/kdeeduplot/kplotobject.h +++ b/kdeeduplot/kplotobject.h @@ -18,8 +18,7 @@ #ifndef KPLOTOBJECT_H #define KPLOTOBJECT_H -class QPainter; - +#include #include #include #include diff --git a/kdeeduplot/kplotwidget.h b/kdeeduplot/kplotwidget.h index e1dc32c..5e62aae 100644 --- a/kdeeduplot/kplotwidget.h +++ b/kdeeduplot/kplotwidget.h @@ -15,8 +15,8 @@ * * ***************************************************************************/ -#ifndef _KPLOTWIDGET_H_ -#define _KPLOTWIDGET_H_ +#ifndef KPLOTWIDGET_H +#define KPLOTWIDGET_H #include #include