Consitently use dbus::utility types
This saves about 4k on the binary size
Tested: Redfish service validator passes.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I9546227a19c691b1aecb80e80307889548c0293f
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp
index eaf7e6c..dd67aea 100644
--- a/redfish-core/lib/power.hpp
+++ b/redfish-core/lib/power.hpp
@@ -136,10 +136,11 @@
// for the chassis that implements the Chassis inventory item.
// This prevents things like power supplies providing the
// chassis power limit
+
+ using Mapper = dbus::utility::MapperGetSubTreePathsResponse;
auto chassisHandler = [sensorAsyncResp](
const boost::system::error_code e,
- const std::vector<std::string>&
- chassisPaths) {
+ const Mapper& chassisPaths) {
if (e)
{
BMCWEB_LOG_ERROR
@@ -189,9 +190,7 @@
auto valueHandler =
[sensorAsyncResp](
const boost::system::error_code ec,
- const std::vector<std::pair<
- std::string, dbus::utility::DbusVariantType>>&
- properties) {
+ const dbus::utility::DBusPropertiesMap& properties) {
if (ec)
{
messages::internalError(