summaryrefslogtreecommitdiff
path: root/core/local_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/local_vector.h')
-rw-r--r--core/local_vector.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/local_vector.h b/core/local_vector.h
index e8b02fe661..c8abb32bf5 100644
--- a/core/local_vector.h
+++ b/core/local_vector.h
@@ -76,8 +76,9 @@ public:
void erase(const T &p_val) {
U idx = find(p_val);
- if (idx >= 0)
+ if (idx >= 0) {
remove(idx);
+ }
}
void invert() {
@@ -167,8 +168,9 @@ public:
template <class C>
void sort_custom() {
U len = count;
- if (len == 0)
+ if (len == 0) {
return;
+ }
SortArray<T, C> sorter;
sorter.sort(data, len);