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: Ieb6587e32446a758676f67d9c868289cc02e50bf
diff --git a/tests/test_HwmonTempSensor.cpp b/tests/test_HwmonTempSensor.cpp
index 2be603a..dc354a8 100644
--- a/tests/test_HwmonTempSensor.cpp
+++ b/tests/test_HwmonTempSensor.cpp
@@ -9,8 +9,7 @@
TEST(HwmonTempSensor, TestTMP75)
{
boost::asio::io_service io;
- auto system_bus =
- std::make_shared<dbus::connection>(io, dbus::bus::session);
+ auto system_bus = std::make_shared<dbus::connection>(io, dbus_t::session);
dbus::DbusObjectServer object_server(system_bus);
std::vector<thresholds::Threshold> sensor_thresholds;
@@ -32,8 +31,7 @@
TEST(HwmonTempSensor, TestTMP421)
{
boost::asio::io_service io;
- auto system_bus =
- std::make_shared<dbus::connection>(io, dbus::bus::session);
+ auto system_bus = std::make_shared<dbus::connection>(io, dbus_t::session);
dbus::DbusObjectServer object_server(system_bus);
std::vector<thresholds::Threshold> sensor_thresholds;