summaryrefslogtreecommitdiff
path: root/core/templates/vmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/vmap.h')
-rw-r--r--core/templates/vmap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/templates/vmap.h b/core/templates/vmap.h
index 520e0b3720..0ff105ccbf 100644
--- a/core/templates/vmap.h
+++ b/core/templates/vmap.h
@@ -134,7 +134,7 @@ public:
if (pos < 0) {
return;
}
- _cowdata.remove(pos);
+ _cowdata.remove_at(pos);
}
int find(const T &p_val) const {
@@ -193,9 +193,8 @@ public:
_FORCE_INLINE_ VMap() {}
_FORCE_INLINE_ VMap(const VMap &p_from) { _cowdata._ref(p_from._cowdata); }
- inline VMap &operator=(const VMap &p_from) {
+ inline void operator=(const VMap &p_from) {
_cowdata._ref(p_from._cowdata);
- return *this;
}
};