]>
Commit | Line | Data |
---|---|---|
8a8f9fb3 AM |
1 | From fcae659e9be22b00b0efe52f19a89b8fce26a925 Mon Sep 17 00:00:00 2001 |
2 | From: David Faure <faure@kde.org> | |
3 | Date: Sat, 6 Dec 2014 11:35:16 +0100 | |
4 | Subject: [PATCH 24/30] Fix compilation with strict iterators | |
5 | ||
6 | --- | |
7 | server/src/storage/collectionstatistics.cpp | 2 +- | |
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
9 | ||
10 | diff --git a/server/src/storage/collectionstatistics.cpp b/server/src/storage/collectionstatistics.cpp | |
11 | index 85ee449..b2c6915 100644 | |
12 | --- a/server/src/storage/collectionstatistics.cpp | |
13 | +++ b/server/src/storage/collectionstatistics.cpp | |
14 | @@ -52,7 +52,7 @@ const CollectionStatistics::Statistics& CollectionStatistics::statistics(const C | |
15 | { | |
16 | QMutexLocker lock(&mCacheLock); | |
17 | auto it = mCache.find(col.id()); | |
18 | - if (it == mCache.constEnd()) { | |
19 | + if (it == mCache.end()) { | |
20 | it = mCache.insert(col.id(), getCollectionStatistics(col)); | |
21 | } | |
22 | return it.value(); | |
23 | -- | |
24 | 2.1.0 | |
25 |