From: Avgoustinos Kadis Date: Wed, 30 Jul 2008 07:54:22 +0000 (+0000) Subject: Implemented indexOfIdentifier() function (in comments). Works only by X-Git-Tag: v4.1.80~38 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=29f1b99b76828a20fc132183c9effe3f0502eaa0;p=libqmvoc.git Implemented indexOfIdentifier() function (in comments). Works only by removing the const from the function definition. Not sure about binary compatibility so I didn't remove it. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=839512 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 01466c0..169a348 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -694,6 +694,15 @@ void KEduVocDocument::setTenseDescriptions( const QStringList &names ) setModified(true); } +// works if const is removed +// int KEduVocDocument::indexOfIdentifier( const QString &name ) const +// { +// for (int i = 0; i < identifierCount(); i++) +// if (identifier(i).locale() == name) +// return i; +// return -1; +// } + void KEduVocDocument::removeIdentifier( int index ) {