author | zautrix <zautrix> | 2005-06-14 08:23:19 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-14 08:23:19 (UTC) |
commit | 1dccb9dd9ea32989ecec33c72a3ebd873dce048e (patch) (unidiff) | |
tree | 6b7dd7e4696c91a3afaba89225dd4f31f376a30b /libkcal/calfilter.cpp | |
parent | b3743f5abe0a95c9ffeadf6701c9943f604febd6 (diff) | |
download | kdepimpi-1dccb9dd9ea32989ecec33c72a3ebd873dce048e.zip kdepimpi-1dccb9dd9ea32989ecec33c72a3ebd873dce048e.tar.gz kdepimpi-1dccb9dd9ea32989ecec33c72a3ebd873dce048e.tar.bz2 |
faster filter
-rw-r--r-- | libkcal/calfilter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkcal/calfilter.cpp b/libkcal/calfilter.cpp index 3510c7d..72f70c2 100644 --- a/libkcal/calfilter.cpp +++ b/libkcal/calfilter.cpp | |||
@@ -162,9 +162,9 @@ bool CalFilter::filterIncidence(Incidence *incidence) | |||
162 | if (mCriteria & ShowCategories) { | 162 | if (mCriteria & ShowCategories) { |
163 | for (QStringList::Iterator it = mCategoryList.begin(); | 163 | for (QStringList::Iterator it = mCategoryList.begin(); |
164 | it != mCategoryList.end(); ++it ) { | 164 | it != mCategoryList.end(); ++it ) { |
165 | QStringList incidenceCategories = incidence->categories(); | 165 | //QStringList incidenceCategories = incidence->categories(); |
166 | for (QStringList::Iterator it2 = incidenceCategories.begin(); | 166 | for (QStringList::Iterator it2 = incidence->categoriesP()->begin(); |
167 | it2 != incidenceCategories.end(); ++it2 ) { | 167 | it2 != incidence->categoriesP()->end(); ++it2 ) { |
168 | if ((*it) == (*it2)) { | 168 | if ((*it) == (*it2)) { |
169 | return true; | 169 | return true; |
170 | } | 170 | } |
@@ -174,9 +174,9 @@ bool CalFilter::filterIncidence(Incidence *incidence) | |||
174 | } else { | 174 | } else { |
175 | for (QStringList::Iterator it = mCategoryList.begin(); | 175 | for (QStringList::Iterator it = mCategoryList.begin(); |
176 | it != mCategoryList.end(); ++it ) { | 176 | it != mCategoryList.end(); ++it ) { |
177 | QStringList incidenceCategories = incidence->categories(); | 177 | //QStringList incidenceCategories = incidence->categories(); |
178 | for (QStringList::Iterator it2 = incidenceCategories.begin(); | 178 | for (QStringList::Iterator it2 = incidence->categoriesP()->begin(); |
179 | it2 != incidenceCategories.end(); ++it2 ) { | 179 | it2 != incidence->categoriesP()->end(); ++it2 ) { |
180 | if ((*it) == (*it2)) { | 180 | if ((*it) == (*it2)) { |
181 | return false; | 181 | return false; |
182 | } | 182 | } |