}
-void KEduVocDocument::setLessonsInQuery(QList<int> lesson_iq)
+void KEduVocDocument::setLessonsInQuery(const QList<int> &lesson_iq)
{
d->m_lessonsInQuery.clear();
for (int i = 0; i < d->m_lessonDescriptions.count(); i++)
/**
* Sets the lessons in the current query
*/
- void setLessonsInQuery(QList<int>);
+ void setLessonsInQuery(const QList<int> &lesson_iq);
QStringList lessonDescriptions() const;
/** default constructor for an empty vocabulary expression
*/
- KEduVocExpression();
+ explicit KEduVocExpression();
/** Constructor for a vocabulary expression with an original
*
* @param expression original
* @param lesson lesson number, 0 for none
*/
- KEduVocExpression(const QString & expression, int lesson = 0);
+ explicit KEduVocExpression(const QString & expression, int lesson = 0);
/** Constructor for a vocabulary expression with an original and one or more translations
*
if(!element.isNull())
return element.text();
else
- return QString::null;
+ return QString();
}
{
}
-int LeitnerBox::vocabCount()
+int LeitnerBox::vocabCount() const
{
return m_vocabCount;
}
/**
* The constructor
*/
- LeitnerBox();
+ explicit LeitnerBox();
/**
* The destructor
* Returns the current vocabCount
* @return the number of cards/ vocabs that are currently assigned to the LeitnerBox.
*/
- int vocabCount();
+ int vocabCount() const;
/**
* Returns a pointer to the LeitnerBox correct cards of this LeitnerBox here are assigned to