aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash_ut.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/generic/hash_ut.cpp
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash_ut.cpp')
-rw-r--r--util/generic/hash_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/hash_ut.cpp b/util/generic/hash_ut.cpp
index 2322ed4d9d..0551d58770 100644
--- a/util/generic/hash_ut.cpp
+++ b/util/generic/hash_ut.cpp
@@ -160,9 +160,9 @@ void THashTest::TestHMapConstructorsAndAssignments() {
UNIT_ASSERT_VALUES_EQUAL(2, c4.at("two"));
UNIT_ASSERT_VALUES_EQUAL(3, c4.at("three"));
UNIT_ASSERT_VALUES_EQUAL(4, c4.at("four"));
-
- // non-existent values must be zero-initialized
- UNIT_ASSERT_VALUES_EQUAL(c1["nonexistent"], 0);
+
+ // non-existent values must be zero-initialized
+ UNIT_ASSERT_VALUES_EQUAL(c1["nonexistent"], 0);
}
void THashTest::TestHMap1() {
@@ -807,18 +807,18 @@ public:
{
}
- T* allocate(size_type n) {
- auto result = base_type::allocate(n);
+ T* allocate(size_type n) {
+ auto result = base_type::allocate(n);
if (Counters_) {
++Counters_->Allocations;
- Counters_->Chunks.emplace(result, n * sizeof(T));
+ Counters_->Chunks.emplace(result, n * sizeof(T));
}
return result;
}
- void deallocate(T* p, size_type n) {
+ void deallocate(T* p, size_type n) {
if (Counters_) {
++Counters_->Deallocations;
Counters_->Chunks.erase(std::make_pair(p, n * sizeof(T)));