summaryrefslogtreecommitdiffstats
path: root/util/draft
diff options
context:
space:
mode:
authorantonovvk <[email protected]>2022-02-10 16:47:51 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:51 +0300
commit37a63debdc21e372d99e1808cdd31aecf75018c3 (patch)
treefd84293fb9a1b16381dd6c1a5e14c78afacb8710 /util/draft
parent1fe621e70df847cc201ac942fe6d7804ea10508d (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r--util/draft/holder_vector.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index 1c62055bd95..40f958cdd33 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -58,13 +58,13 @@ public:
(*this)[i] = t.Release();
}
- void PopBack() {
- if (size()) {
- D::Destroy(back());
- TBase::pop_back();
- }
- }
-
+ void PopBack() {
+ if (size()) {
+ D::Destroy(back());
+ TBase::pop_back();
+ }
+ }
+
T* Release(size_t i) {
T* t = (*this)[i];
(*this)[i] = nullptr;