From: Albert Astals Cid Date: Sun, 12 Oct 2008 21:08:29 +0000 (+0000) Subject: foreach knows how to iterate over the values of QMaps so don't call values() on the... X-Git-Tag: v4.1.80~3 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=450d65cad6a27e8b9bc642ac3bbe3c59cd4e0999;p=libqmvoc.git foreach knows how to iterate over the values of QMaps so don't call values() on the QMaps, it's just slower and more memory intensive svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=870615 --- diff --git a/keduvocdocument/keduvocarticle.cpp b/keduvocdocument/keduvocarticle.cpp index feab79d..7eba2c0 100644 --- a/keduvocdocument/keduvocarticle.cpp +++ b/keduvocdocument/keduvocarticle.cpp @@ -80,7 +80,7 @@ bool KEduVocArticle::isArticle(const QString & article) const bool KEduVocArticle::isEmpty() { // we don't count empty strings as articles - foreach(const QString& s, d->m_articles.values()) + foreach(const QString& s, d->m_articles) { if (!s.isEmpty()) return false;