Blame 0024-Fix-compilation-with-strict-iterators.patch
|
Rex Dieter |
adf30af |
From fcae659e9be22b00b0efe52f19a89b8fce26a925 Mon Sep 17 00:00:00 2001
|
|
Rex Dieter |
adf30af |
From: David Faure <faure@kde.org>
|
|
Rex Dieter |
adf30af |
Date: Sat, 6 Dec 2014 11:35:16 +0100
|
|
Rex Dieter |
adf30af |
Subject: [PATCH 24/30] Fix compilation with strict iterators
|
|
Rex Dieter |
adf30af |
|
|
Rex Dieter |
adf30af |
---
|
|
Rex Dieter |
adf30af |
server/src/storage/collectionstatistics.cpp | 2 +-
|
|
Rex Dieter |
adf30af |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Rex Dieter |
adf30af |
|
|
Rex Dieter |
adf30af |
diff --git a/server/src/storage/collectionstatistics.cpp b/server/src/storage/collectionstatistics.cpp
|
|
Rex Dieter |
adf30af |
index 85ee449..b2c6915 100644
|
|
Rex Dieter |
adf30af |
--- a/server/src/storage/collectionstatistics.cpp
|
|
Rex Dieter |
adf30af |
+++ b/server/src/storage/collectionstatistics.cpp
|
|
Rex Dieter |
adf30af |
@@ -52,7 +52,7 @@ const CollectionStatistics::Statistics& CollectionStatistics::statistics(const C
|
|
Rex Dieter |
adf30af |
{
|
|
Rex Dieter |
adf30af |
QMutexLocker lock(&mCacheLock);
|
|
Rex Dieter |
adf30af |
auto it = mCache.find(col.id());
|
|
Rex Dieter |
adf30af |
- if (it == mCache.constEnd()) {
|
|
Rex Dieter |
adf30af |
+ if (it == mCache.end()) {
|
|
Rex Dieter |
adf30af |
it = mCache.insert(col.id(), getCollectionStatistics(col));
|
|
Rex Dieter |
adf30af |
}
|
|
Rex Dieter |
adf30af |
return it.value();
|
|
Rex Dieter |
adf30af |
--
|
|
Rex Dieter |
adf30af |
2.1.0
|
|
Rex Dieter |
adf30af |
|