From: Frederik Gladhorn Date: Tue, 28 Aug 2007 00:24:58 +0000 (+0000) Subject: Remove comment, enable comparison and copy of falseFriends (operator= and ==). X-Git-Tag: v3.93.0~19 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=364bed30d8e36352580354980f4b1a51a4994950;p=libqmvoc.git Remove comment, enable comparison and copy of falseFriends (operator= and ==). svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705461 --- diff --git a/keduvocdocument/keduvoctranslation.cpp b/keduvocdocument/keduvoctranslation.cpp index 85a05dc..c9c9f60 100644 --- a/keduvocdocument/keduvoctranslation.cpp +++ b/keduvocdocument/keduvoctranslation.cpp @@ -145,11 +145,6 @@ void KEduVocTranslation::setTranslation ( const QString & expr ) } -/** - @todo CHANGE ALL [index] to .value(index) in get methods! otherwise the element is automatically created!!! -*/ - - QString KEduVocTranslation::comment ( ) const { return d->m_comment; @@ -327,8 +322,8 @@ bool KEduVocTranslation::operator ==(const KEduVocTranslation & translation) con d->m_antonym == translation.d->m_antonym && d->m_pronunciation == translation.d->m_pronunciation && d->m_comparison == translation.d->m_comparison && - d->m_multipleChoice == translation.d->m_multipleChoice - /// @todo m_falseFriends == translation.m_falseFriends && + d->m_multipleChoice == translation.d->m_multipleChoice && + d->m_falseFriends == translation.d->m_falseFriends /// @todo m_grades == translation.m_grades && /// @todo m_conjugations == translation.m_conjugations ; @@ -349,7 +344,7 @@ KEduVocTranslation & KEduVocTranslation::operator =(const KEduVocTranslation & t d->m_pronunciation = translation.d->m_pronunciation; d->m_comparison = translation.d->m_comparison; d->m_multipleChoice = translation.d->m_multipleChoice; - /// @todo m_falseFriends == translation.m_falseFriends; + d->m_falseFriends == translation.d->m_falseFriends; /// @todo m_grades == translation.m_grades; /// @todo m_conjugations == translation.m_conjugations; return *this;