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: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
diff --git a/dbus/dbuswrite.cpp b/dbus/dbuswrite.cpp
index 880dea9..33ba730 100644
--- a/dbus/dbuswrite.cpp
+++ b/dbus/dbuswrite.cpp
@@ -89,7 +89,7 @@
// TODO: if we don't use the reply, call_noreply()
auto resp = writeBus.call(mesg);
}
- catch (const sdbusplus::exception::exception& ex)
+ catch (const sdbusplus::exception_t& ex)
{
log<level::ERR>("Dbus Call Failure", entry("PATH=%s", path.c_str()),
entry("WHAT=%s", ex.what()));
@@ -152,7 +152,7 @@
// TODO: consider call_noreplly
auto resp = writeBus.call(mesg);
}
- catch (const sdbusplus::exception::exception& ex)
+ catch (const sdbusplus::exception_t& ex)
{
log<level::ERR>("Dbus Call Failure", entry("PATH=%s", path.c_str()),
entry("WHAT=%s", ex.what()));