API REVIEW: runnerName() -> name()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801360
This commit is contained in:
Davide Bettio 2008-04-26 12:20:29 +00:00
parent 254077afa4
commit 451dc3b8cd
2 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ void AbstractRunner::performMatch( Plasma::SearchContext &globalContext )
if (!slowed && runtime > reasonableRunTime) { if (!slowed && runtime > reasonableRunTime) {
// we punish runners that return too slowly, even if they don't bring // we punish runners that return too slowly, even if they don't bring
// back matches // back matches
kDebug() << runnerName() << "runner is too slow, putting it on the back burner."; kDebug() << name() << "runner is too slow, putting it on the back burner.";
d->fastRuns = 0; d->fastRuns = 0;
setSpeed(SlowSpeed); setSpeed(SlowSpeed);
} }
@ -143,7 +143,7 @@ void AbstractRunner::performMatch( Plasma::SearchContext &globalContext )
if (d->fastRuns > 2) { if (d->fastRuns > 2) {
// we reward slowed runners who bring back matches fast enough // we reward slowed runners who bring back matches fast enough
// 3 times in a row // 3 times in a row
kDebug() << runnerName() << "runner is faster than we thought, kicking it up a notch"; kDebug() << name() << "runner is faster than we thought, kicking it up a notch";
setSpeed(NormalSpeed); setSpeed(NormalSpeed);
} }
} }
@ -224,7 +224,7 @@ void AbstractRunner::match(Plasma::SearchContext *search)
} }
} }
QString AbstractRunner::runnerName() const QString AbstractRunner::name() const
{ {
if (!d->runnerDescription.isValid()) { if (!d->runnerDescription.isValid()) {
return objectName(); return objectName();

View File

@ -156,7 +156,7 @@ class PLASMA_EXPORT AbstractRunner : public QObject
/** /**
* Returns the engine name for the Runner * Returns the engine name for the Runner
*/ */
QString runnerName() const; QString name() const;
/** /**
* Accessor for the associated Package object if any. * Accessor for the associated Package object if any.