Skip to content

Commit

Permalink
Removed extra parentheses on eastl::move's return statement (#409)
Browse files Browse the repository at this point in the history
- This silences a specific clang-tidy check when using the pass-by-value + move idiom
  • Loading branch information
Razakhel authored Jan 7, 2021
1 parent 853befb commit dda5082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/EASTL/internal/move_help.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ namespace eastl
EA_CPP14_CONSTEXPR typename eastl::remove_reference<T>::type&&
move(T&& x) EA_NOEXCEPT
{
return ((typename eastl::remove_reference<T>::type&&)x);
return static_cast<typename eastl::remove_reference<T>::type&&>(x);
}


Expand Down

0 comments on commit dda5082

Please sign in to comment.