diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 09:49:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:49:42 +1100 |
commit | aa987a217779e71f97ee4c9cce531aec1c861bf8 (patch) | |
tree | e51fcce110306d93bf93870f13a5ff7d6b575427 /source/core/StarSpatialHash2D.hpp | |
parent | d0099a6d790b66f21e4e266e569d64fb82fb0a81 (diff) | |
parent | 1c89042016c739815b2d70bcbef4673eef6b63e0 (diff) |
Merge branch 'main' into small-fixes
Diffstat (limited to 'source/core/StarSpatialHash2D.hpp')
-rw-r--r-- | source/core/StarSpatialHash2D.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/StarSpatialHash2D.hpp b/source/core/StarSpatialHash2D.hpp index 2241dfd..87f70e3 100644 --- a/source/core/StarSpatialHash2D.hpp +++ b/source/core/StarSpatialHash2D.hpp @@ -239,19 +239,19 @@ void SpatialHash2D<KeyT, ScalarT, ValueT, IntT, AllocatorBlockSize>::set(Key con template <typename KeyT, typename ScalarT, typename ValueT, typename IntT, size_t AllocatorBlockSize> void SpatialHash2D<KeyT, ScalarT, ValueT, IntT, AllocatorBlockSize>::set(Key const& key, Coord const& pos, Value value) { - set(key, {Rect(pos, pos)}, move(value)); + set(key, {Rect(pos, pos)}, std::move(value)); } template <typename KeyT, typename ScalarT, typename ValueT, typename IntT, size_t AllocatorBlockSize> void SpatialHash2D<KeyT, ScalarT, ValueT, IntT, AllocatorBlockSize>::set(Key const& key, Rect const& rect, Value value) { - set(key, {rect}, move(value)); + set(key, {rect}, std::move(value)); } template <typename KeyT, typename ScalarT, typename ValueT, typename IntT, size_t AllocatorBlockSize> template <typename RectCollection> void SpatialHash2D<KeyT, ScalarT, ValueT, IntT, AllocatorBlockSize>::set(Key const& key, RectCollection const& rects, Value value) { Entry& entry = m_entryMap[key]; - entry.value = move(value); + entry.value = std::move(value); updateSpatial(&entry, rects); } @@ -262,7 +262,7 @@ auto SpatialHash2D<KeyT, ScalarT, ValueT, IntT, AllocatorBlockSize>::remove(Key return {}; removeSpatial(&iter->second); - Maybe<Value> val = move(iter->second.value); + Maybe<Value> val = std::move(iter->second.value); m_entryMap.erase(iter); return val; } |