Skip to content

Commit

Permalink
meta: drop unnecessary move
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jul 25, 2023
1 parent a911497 commit 1a8a86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/meta/meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ bool meta_any::set(const id_type id, Type &&value) {

inline bool meta_any::assign(const meta_any &other) {
auto value = other.allow_cast({*ctx, node});
return value && storage.assign(std::move(value.storage));
return value && storage.assign(value.storage);
}

inline bool meta_any::assign(meta_any &&other) {
Expand Down

0 comments on commit 1a8a86c

Please sign in to comment.