[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:
@@ -231,7 +231,7 @@ UdisksNeighborExplorer::HandleMessage(DBusConnection *, DBusMessage *message) no
|
||||
dbus_message_has_signature(message, InterfacesAddedType::value)) {
|
||||
RecurseInterfaceDictEntry(ReadMessageIter(*message), [this](const char *path, auto &&i){
|
||||
UDisks2::Object o(path);
|
||||
UDisks2::ParseObject(o, std::move(i));
|
||||
UDisks2::ParseObject(o, std::forward<decltype(i)>(i));
|
||||
if (o.IsValid())
|
||||
this->Insert(std::move(o));
|
||||
});
|
||||
|
Reference in New Issue
Block a user