From c6cc8a4b5f4efbb87b051d8fb3a5d0c280c6c43d Mon Sep 17 00:00:00 2001 From: Davide Bettio Date: Thu, 24 Apr 2008 16:04:50 +0000 Subject: [PATCH] clearMatches() -> removeAllMatches(). svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800666 --- searchcontext.cpp | 4 ++-- searchcontext.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searchcontext.cpp b/searchcontext.cpp index 45990141a..302f7486f 100644 --- a/searchcontext.cpp +++ b/searchcontext.cpp @@ -284,7 +284,7 @@ bool SearchContext::moveMatchesTo(SearchContext &other) //NOTE: we have moveMatchesTo instead of the more 'natural' addMatches // because we can get away with one write lock on the local object // this way, otherwise we'd need to lock once for searchTerm, once - // for matches() and again for clearMatches() (2 read, one write) + // for matches() and again for removeAllMatches() (2 read, one write) d->lockForWrite(); const bool success = other.addMatches(d->term, d->matches); @@ -307,7 +307,7 @@ QList SearchContext::matches() const return matches; } -void SearchContext::clearMatches() +void SearchContext::removeAllMatches() { d->lockForWrite(); diff --git a/searchcontext.h b/searchcontext.h index e1023d4a8..16711f254 100644 --- a/searchcontext.h +++ b/searchcontext.h @@ -161,9 +161,9 @@ class PLASMA_EXPORT SearchContext : public QObject void determineType(); /** - * Clears matches + * Removes all matches from this SearchContext. */ - void clearMatches(); + void removeAllMatches(); Q_SIGNALS: void matchesChanged();