Skip to content

Commit

Permalink
refactor: Clean code[096631]
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedysky committed Apr 19, 2023
1 parent 8311783 commit ceb2f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTKCommon/TTKLibrary/ttkany.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace TTK
template <typename T, typename _TYPE = remove_cvr<T>>
inline _TYPE any_cast(TTKAny &&other)
{
return std::move(other.isSame<_TYPE>() ? other.cast<_TYPE>() : _TYPE());
return other.isSame<_TYPE>() ? other.cast<_TYPE>() : _TYPE();
}

template <typename T, typename _TYPE = remove_cvr<T>>
Expand Down

0 comments on commit ceb2f09

Please sign in to comment.