Remove pessimizing std::move
As clang-tidy points out, the object that this std::move is operating on
is already an rvalue, so calling std::move on it is redundant.
Tested: trivial change.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Idd4efa6a65c8f125ccf6fe58262a09908aae2e74
diff --git a/src/NVMeSensorMain.cpp b/src/NVMeSensorMain.cpp
index c2b32f0..d032b6e 100644
--- a/src/NVMeSensorMain.cpp
+++ b/src/NVMeSensorMain.cpp
@@ -175,12 +175,11 @@
{
auto getter = std::make_shared<GetSensorConfiguration>(
- dbusConnection,
- std::move([&io, &objectServer, &dbusConnection](
- const ManagedObjectType& sensorConfigurations) {
+ dbusConnection, [&io, &objectServer, &dbusConnection](
+ const ManagedObjectType& sensorConfigurations) {
handleSensorConfigurations(io, objectServer, dbusConnection,
sensorConfigurations);
- }));
+ });
getter->getConfiguration(std::vector<std::string>{NVMeSensor::configType});
}