summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/common/cachedselect_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2023-08-29 15:33:21 +0000
committerGeir Storli <geirst@yahooinc.com>2023-08-29 15:33:21 +0000
commit4bfc6ac4798fb6921f8561e508794d208e14a046 (patch)
tree7a0be7cab777b990b25bb5f031390e98cb0e9d30 /searchcore/src/tests/proton/common/cachedselect_test.cpp
parenta42035a3325890d63ac8dd1526d012f093f1fc90 (diff)
Modernize C++ code.
Diffstat (limited to 'searchcore/src/tests/proton/common/cachedselect_test.cpp')
-rw-r--r--searchcore/src/tests/proton/common/cachedselect_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/common/cachedselect_test.cpp b/searchcore/src/tests/proton/common/cachedselect_test.cpp
index 9a9d491467c..02c5128a0a7 100644
--- a/searchcore/src/tests/proton/common/cachedselect_test.cpp
+++ b/searchcore/src/tests/proton/common/cachedselect_test.cpp
@@ -289,7 +289,7 @@ MyDB::addDoc(uint32_t lid,
const Document &
MyDB::getDoc(uint32_t lid) const
{
- LidToDocSP::const_iterator it(_lidToDocSP.find(lid));
+ auto it = _lidToDocSP.find(lid);
ASSERT_TRUE(it != _lidToDocSP.end());
return *it->second;
}