Implement clang-tidy fixes
clang-tidy allows the CI robot to check many things via static analysis.
All changes here were made by the clang-tidy robot, and include a number
of modernization fixes. updating the tidy file will be done at a later
date.
Signed-off-by: Ed Tanous <etanous@nvidia.com>
Change-Id: I98cc4d600a3c589675507958f6d2350b2141216b
diff --git a/ipmi/main_ipmi.cpp b/ipmi/main_ipmi.cpp
index d1eed13..2dd6a75 100644
--- a/ipmi/main_ipmi.cpp
+++ b/ipmi/main_ipmi.cpp
@@ -47,9 +47,8 @@
"Registering OEM:[%#08X], Cmd:[%#04X] for Manual Zone Control\n",
oem::obmcOemNumber, oem::Cmd::fanManualCmd);
- using namespace std::placeholders;
router->registerHandler(
oem::obmcOemNumber, oem::Cmd::fanManualCmd,
- std::bind(pid_control::ipmi::manualModeControl,
- &pid_control::ipmi::handler, _1, _2, _3, _4));
+ std::bind_front(pid_control::ipmi::manualModeControl,
+ &pid_control::ipmi::handler));
}