aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvadim-xd <vadim-xd@yandex-team.com>2024-08-23 15:55:32 +0300
committervadim-xd <vadim-xd@yandex-team.com>2024-08-23 16:06:29 +0300
commit5fbd2e59a1f093d334ae5c4bb316d503420bfef3 (patch)
tree0a129ea8a04ab61304c0c8efdc1343015d222343
parenta5c6c563bd75d09fee9d2579fca8ff469e2dad40 (diff)
downloadydb-5fbd2e59a1f093d334ae5c4bb316d503420bfef3.tar.gz
Remove remaining calls of Container() (fixup rXXXXXX)
b2b7d42af6f055ef24e22f69cac6c0f5560f6120
-rw-r--r--util/generic/queue.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/generic/queue.h b/util/generic/queue.h
index ade2c07544..f1d358daf2 100644
--- a/util/generic/queue.h
+++ b/util/generic/queue.h
@@ -50,9 +50,10 @@ public:
inline T PopValue() {
Y_ASSERT(!this->empty());
- std::pop_heap(Container().begin(), Container().end(), this->comp);
- T value = std::move(Container().back());
- this->c.pop_back();
+ auto& container = this->c;
+ std::pop_heap(container.begin(), container.end(), this->comp);
+ T value = std::move(container.back());
+ container.pop_back();
return value;
}