summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-08-03 22:28:48 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-08-03 22:28:48 +0200
commitbf3c22b5eb8ee574f1512fcaefcd3829ff3e5ea8 (patch)
tree7680e964efbfaf9a31155d78d20fb3917aff9041 /searchcore
parent4528968a367818c52491edc05411d03829d0c173 (diff)
Use nested namespace
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp6
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.h7
2 files changed, 4 insertions, 9 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
index 8c0fb945d8e..026cbc00604 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
@@ -18,8 +18,7 @@ using search::queryeval::SearchIterator;
using search::queryeval::SimpleLeafBlueprint;
using vespalib::GenerationHolder;
-namespace proton {
-namespace documentmetastore {
+namespace proton::documentmetastore {
LidAllocator::LidAllocator(uint32_t size,
uint32_t capacity,
@@ -324,5 +323,4 @@ LidAllocator::getNumUsedLids() const
return _usedLids.count();
}
-} // namespace documentmetastore
-} // namespace proton
+}
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.h b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.h
index bf8835f5c41..9d02195961c 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.h
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.h
@@ -13,8 +13,7 @@ class SingleValueBitNumericAttribute;
class GrowStrategy;
}
-namespace proton {
-namespace documentmetastore {
+namespace proton::documentmetastore {
/**
* Class responsible for allocating lids and managing
@@ -99,6 +98,4 @@ public:
};
-} // namespace documentmetastore
-} // namespace proton
-
+}