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.  

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
This commit is contained in:
Jacopo De Simoi 2009-04-29 04:02:44 +00:00
parent bf61997a9f
commit 58fb144475
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ QString RunnerContext::mimeType() const
return d->mimeType; return d->mimeType;
} }
bool RunnerContext::isValid() bool RunnerContext::isValid() const
{ {
// if our qptr is dirty, we aren't useful anymore // if our qptr is dirty, we aren't useful anymore
return (d->q != &(d->s_dummyContext)); return (d->q != &(d->s_dummyContext));

View File

@ -119,7 +119,7 @@ class PLASMA_EXPORT RunnerContext : public QObject
* to avoid unecessary processing in runners that may run for an extended * 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 * period (as measured in 10s of ms) and therefore improve the user experience. @since 4.2.3
*/ */
bool isValid(); bool isValid() const;
/** /**