summaryrefslogtreecommitdiffstats
path: root/util/draft
diff options
context:
space:
mode:
authorAlexander Gololobov <[email protected]>2022-02-10 16:47:37 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:37 +0300
commit39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch)
tree4ec132c1665bd4d68e3628aa18d937c70d32413b /util/draft
parent54295b9bd4dc45c54d804084fd846d945148a7f0 (diff)
Restoring authorship annotation for Alexander Gololobov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r--util/draft/holder_vector.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index 1c62055bd95..0cf4689f6c6 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -20,8 +20,8 @@ public:
void Clear() {
for (typename TBase::iterator it = TBase::begin(); it != TBase::end(); ++it) {
- if (*it)
- D::Destroy(*it);
+ if (*it)
+ D::Destroy(*it);
}
TBase::clear();
}
@@ -33,11 +33,11 @@ public:
// TVector takes ownership of T
void PushBack(T* t) {
try {
- TBase::push_back(t);
+ TBase::push_back(t);
} catch (...) {
- if (t)
- D::Destroy(t);
- throw;
+ if (t)
+ D::Destroy(t);
+ throw;
}
}
@@ -65,11 +65,11 @@ public:
}
}
- T* Release(size_t i) {
- T* t = (*this)[i];
+ T* Release(size_t i) {
+ T* t = (*this)[i];
(*this)[i] = nullptr;
- return t;
- }
+ return t;
+ }
void Resize(size_t newSize) {
for (size_t i = newSize; i < size(); ++i) {