From: Frederik Gladhorn Date: Sat, 1 Sep 2007 23:52:57 +0000 (+0000) Subject: more const X-Git-Tag: v3.94.0~87 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=e495a0a83c01207beca2c6c73101a46b838d6bdd;p=libqmvoc.git more const svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707492 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 6cbd6b0..dde171f 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -740,7 +740,7 @@ bool KEduVocDocument::isModified() const } -bool KEduVocDocument::leitnerSystemActive() +bool KEduVocDocument::leitnerSystemActive() const { return d->m_activeLeitnerSystem; } diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 1dec3bd..44d009f 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -508,7 +508,7 @@ public: */ void setCsvDelimiter( const QString &delimiter ); - bool leitnerSystemActive(); + bool leitnerSystemActive() const; void setLeitnerSystemActive( bool yes ); void createStandardLeitnerSystem(); void setLeitnerSystem( LeitnerSystem* system ); diff --git a/keduvocdocument/leitnersystem.cpp b/keduvocdocument/leitnersystem.cpp index bf6f9da..d5316cb 100644 --- a/keduvocdocument/leitnersystem.cpp +++ b/keduvocdocument/leitnersystem.cpp @@ -230,7 +230,7 @@ void LeitnerSystem::setBoxVocabCount( QString& box, int vocabCount ) boxWithName( box )->setVocabCount( vocabCount ); } -int LeitnerSystem::boxVocabCount( QString& box ) +int LeitnerSystem::boxVocabCount( QString& box ) const { return boxWithName( box )->vocabCount(); } diff --git a/keduvocdocument/leitnersystem.h b/keduvocdocument/leitnersystem.h index c3252f6..7c63b97 100644 --- a/keduvocdocument/leitnersystem.h +++ b/keduvocdocument/leitnersystem.h @@ -120,7 +120,7 @@ public: bool setBoxName( LeitnerBox* box, const QString& name ); void setBoxVocabCount( QString& box, int vocabCount ); - int boxVocabCount( QString& box ); + int boxVocabCount( QString& box ) const; void incrementBoxVocabCount( const QString& box ); void decrementBoxVocabCount( const QString& box );