Fix typo.

This commit is contained in:
Relintai 2022-06-11 23:01:00 +02:00
parent aa38f53ed2
commit 667f466b9c

View File

@ -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<T> &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 <class T>
@ -494,7 +504,7 @@ bool PoolVector<T>::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;
}