diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-19 18:39:01 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-19 18:39:01 +0100 |
commit | 7c4fbad2ba7d79580a9ebbf9fde1de117be4d08e (patch) | |
tree | f7c8e96e744222857c613e5fd14720d2695613c3 /source/core/StarMap.hpp | |
parent | 431a9c00a56cf4c603be1cf5f773b193621d8150 (diff) |
Removed some redundant std::move usages in return statements.
Diffstat (limited to 'source/core/StarMap.hpp')
-rw-r--r-- | source/core/StarMap.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarMap.hpp b/source/core/StarMap.hpp index e3f9d67..187f4cf 100644 --- a/source/core/StarMap.hpp +++ b/source/core/StarMap.hpp @@ -172,7 +172,7 @@ auto MapMixin<BaseMap>::maybeTake(key_type const& k) -> Maybe<mapped_type> { if (i != Base::end()) { mapped_type v = std::move(i->second); Base::erase(i); - return std::move(v); + return v; } return {}; @@ -198,7 +198,7 @@ template <typename BaseMap> auto MapMixin<BaseMap>::value(key_type const& k, mapped_type d) const -> mapped_type { const_iterator i = Base::find(k); if (i == Base::end()) - return std::move(d); + return d; else return i->second; } |