[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:
@@ -167,7 +167,7 @@ ParseObjects(ODBus::ReadMessageIter &&i,
|
||||
|
||||
ForEachInterface(std::move(i), [&callback](const char *path, auto &&j){
|
||||
Object o(path);
|
||||
ParseObject(o, std::move(j));
|
||||
ParseObject(o, std::forward<decltype(j)>(j));
|
||||
if (o.IsValid())
|
||||
callback(std::move(o));
|
||||
});
|
||||
|
Reference in New Issue
Block a user