From: Jeremy Paul Whiting Date: Fri, 24 Aug 2007 21:37:08 +0000 (+0000) Subject: no need to make the map const if not returning a reference, thanks pino X-Git-Tag: v3.93.0~61 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=0e162885451a068da67d3954c46c7a60fcaa382f;p=libqmvoc.git no need to make the map const if not returning a reference, thanks pino svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704437 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 0014d1d..6bc8118 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -1002,7 +1002,7 @@ int KEduVocDocument::addLesson(const QString &lessonName, int position) return position; } -const QMap KEduVocDocument::lessons() const +QMap KEduVocDocument::lessons() const { return d->m_lessons; } diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 84b2253..b2d9c1d 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -439,7 +439,7 @@ public: /** get all lesson objects * @returns a map of pointers to lesson objects */ - const QMap lessons() const; + QMap lessons() const; /** * @returns the number of lessons defined