From dda5082ccea1be7b39800d925a74050f53282125 Mon Sep 17 00:00:00 2001 From: Romain Milbert Date: Fri, 8 Jan 2021 00:28:54 +0100 Subject: [PATCH] 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 --- include/EASTL/internal/move_help.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/EASTL/internal/move_help.h b/include/EASTL/internal/move_help.h index 44c4dec1..97990df6 100644 --- a/include/EASTL/internal/move_help.h +++ b/include/EASTL/internal/move_help.h @@ -112,7 +112,7 @@ namespace eastl EA_CPP14_CONSTEXPR typename eastl::remove_reference::type&& move(T&& x) EA_NOEXCEPT { - return ((typename eastl::remove_reference::type&&)x); + return static_cast::type&&>(x); }