diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-02-02 16:06:22 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-02-04 18:31:00 -0800 |
commit | a4eed3e3302bde1fcb20a740455d400e7436ad80 (patch) | |
tree | 2d185a0b9946ff2e962dd43c6c6b653990ffb8f8 /src/lib | |
parent | 140d8547c7cd7432e4acb1acc18dc5235eef0bef (diff) |
[clang-tidy] use forward instead of move
Found with bugprone-move-forwarding-reference
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dbus/UDisks2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dbus/UDisks2.cxx b/src/lib/dbus/UDisks2.cxx index d07e5aabe..0b1fefd94 100644 --- a/src/lib/dbus/UDisks2.cxx +++ b/src/lib/dbus/UDisks2.cxx @@ -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)); }); |