sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I86dfa77a53a306b0e868eeb82de30b270704c455
diff --git a/sensor.cpp b/sensor.cpp
index add4617..2f6ee34 100644
--- a/sensor.cpp
+++ b/sensor.cpp
@@ -122,7 +122,7 @@
TimedoutMap& timedoutMap)
{
// Get the initial value for the value interface.
- auto& bus = *std::get<sdbusplus::bus::bus*>(info);
+ auto& bus = *std::get<sdbusplus::bus_t*>(info);
auto& obj = std::get<InterfaceMap>(info);
auto& objPath = std::get<std::string>(info);
@@ -251,7 +251,7 @@
}
}
- auto& bus = *std::get<sdbusplus::bus::bus*>(info);
+ auto& bus = *std::get<sdbusplus::bus_t*>(info);
iface = std::make_shared<StatusObject>(
bus, objPath.c_str(), StatusObject::action::emit_no_signals);