From 667f466b9c8b1cb61e8a29600bcd154ead599e99 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Jun 2022 23:01:00 +0200 Subject: [PATCH] Fix typo. --- core/pool_vector.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/core/pool_vector.h b/core/pool_vector.h index cdfe6ccea..e733719d7 100644 --- a/core/pool_vector.h +++ b/core/pool_vector.h @@ -377,7 +377,9 @@ public: T get(int p_index) const; void set(int p_index, const T &p_val); void push_back(const T &p_val); - void append(const T &p_val) { push_back(p_val); } + void append(const T &p_val) { + push_back(p_val); + } void append_array(const PoolVector &p_arr) { int ds = p_arr.size(); if (ds == 0) { @@ -443,7 +445,9 @@ public: bool contains(const T &p_val) const; - bool is_locked() const { return alloc && alloc->lock.get() > 0; } + bool is_locked() const { + return alloc && alloc->lock.get() > 0; + } inline T operator[](int p_index) const; @@ -451,13 +455,19 @@ public: void invert(); - void operator=(const PoolVector &p_pool_vector) { _reference(p_pool_vector); } - PoolVector() { alloc = nullptr; } + void operator=(const PoolVector &p_pool_vector) { + _reference(p_pool_vector); + } + PoolVector() { + alloc = nullptr; + } PoolVector(const PoolVector &p_pool_vector) { alloc = nullptr; _reference(p_pool_vector); } - ~PoolVector() { _unreference(); } + ~PoolVector() { + _unreference(); + } }; template @@ -494,7 +504,7 @@ bool PoolVector::contains(const T &p_val) const { Read r = read(); int s = size(); - for (int i = 0; i < s; ++s) { + for (int i = 0; i < s; ++i) { if (r[i] == p_val) { return true; }