[clang-tidy] use forward instead of move
Found with bugprone-move-forwarding-reference Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@ template<typename T>
|
||||
static auto
|
||||
Append(std::forward_list<T> &list, T &&src)
|
||||
{
|
||||
return list.emplace_after(FindLast(list), std::move(src));
|
||||
return list.emplace_after(FindLast(list), std::forward<T>(src));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user