Skip to content

Commit dda5082

Browse files
authored
Removed extra parentheses on eastl::move's return statement (#409)
- This silences a specific clang-tidy check when using the pass-by-value + move idiom
1 parent 853befb commit dda5082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/EASTL/internal/move_help.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ namespace eastl
112112
EA_CPP14_CONSTEXPR typename eastl::remove_reference<T>::type&&
113113
move(T&& x) EA_NOEXCEPT
114114
{
115-
return ((typename eastl::remove_reference<T>::type&&)x);
115+
return static_cast<typename eastl::remove_reference<T>::type&&>(x);
116116
}
117117

118118

0 commit comments

Comments
 (0)