From 58fb144475e8fbc413c50d8fa5ab0baf261818cd Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 29 Apr 2009 04:02:44 +0000 Subject: [PATCH] Constify the isValid() method (backported around one week ago) Will fix in trunk on monday, but I have to do this before tagging (tomorrow) here in branch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to André for noticing that. CCMAIL: Woebbeking@kde.org CCMAIL: kde-core-devel@kde.org svn path=/branches/KDE/4.2/kdelibs/; revision=960777 --- runnercontext.cpp | 2 +- runnercontext.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runnercontext.cpp b/runnercontext.cpp index f7a83d0ed..643a42275 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -208,7 +208,7 @@ QString RunnerContext::mimeType() const return d->mimeType; } -bool RunnerContext::isValid() +bool RunnerContext::isValid() const { // if our qptr is dirty, we aren't useful anymore return (d->q != &(d->s_dummyContext)); diff --git a/runnercontext.h b/runnercontext.h index ab68fd0c6..7de05cc03 100644 --- a/runnercontext.h +++ b/runnercontext.h @@ -119,7 +119,7 @@ class PLASMA_EXPORT RunnerContext : public QObject * to avoid unecessary processing in runners that may run for an extended * period (as measured in 10s of ms) and therefore improve the user experience. @since 4.2.3 */ - bool isValid(); + bool isValid() const; /**