diff options
author | Ed Tanous <edtanous@google.com> | 2021-12-20 20:34:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-10 20:36:54 +0300 |
commit | 711ac7a931dd3f151fc4064063b5ea90404b9054 (patch) | |
tree | c765543008faaa9c4a82489231aa5ba29d86d2d5 /include/dbus_utility.hpp | |
parent | 6e3b67ecec7c66d674a6707b6211786fc0704d8a (diff) | |
download | bmcweb-711ac7a931dd3f151fc4064063b5ea90404b9054.tar.xz |
Consistently use ManagedObjectType
Some subsystems seem to have invented their own typedefs for this stuff,
move to using the one typedef in dbus::utility so we're consistent, and
we reduce our templates.
Tested: code compiles
This saves a negligible amount (104 bytes compressed) on our binary
size.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I952ea1f960aa703808d0ac80f35dc24cdd8d5027
Diffstat (limited to 'include/dbus_utility.hpp')
-rw-r--r-- | include/dbus_utility.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/dbus_utility.hpp b/include/dbus_utility.hpp index a971325549..4853231537 100644 --- a/include/dbus_utility.hpp +++ b/include/dbus_utility.hpp @@ -56,10 +56,8 @@ using DbusVariantType = sdbusplus::utility::dedup_variant_t< >; // clang-format on -using DBusPropertiesMap = - boost::container::flat_map<std::string, DbusVariantType>; -using DBusInteracesMap = - boost::container::flat_map<std::string, DBusPropertiesMap>; +using DBusPropertiesMap = std::vector<std::pair<std::string, DbusVariantType>>; +using DBusInteracesMap = std::vector<std::pair<std::string, DBusPropertiesMap>>; using ManagedObjectType = std::vector<std::pair<sdbusplus::message::object_path, DBusInteracesMap>>; |