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
Change-Id: Ie3b9c52f1fe18c89432ee7eb5d8023e028565541
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/handler.cpp b/handler.cpp
index bc8f9bd..a82c401 100644
--- a/handler.cpp
+++ b/handler.cpp
@@ -437,7 +437,7 @@
} // namespace
-sdbusplus::bus::bus Handler::getDbus() const
+sdbusplus::bus_t Handler::getDbus() const
{
return sdbusplus::bus::new_default();
}
diff --git a/handler_impl.hpp b/handler_impl.hpp
index 33e5592..b4e87c6 100644
--- a/handler_impl.hpp
+++ b/handler_impl.hpp
@@ -72,7 +72,7 @@
protected:
// Exposed for dependency injection
- virtual sdbusplus::bus::bus getDbus() const;
+ virtual sdbusplus::bus_t getDbus() const;
private:
std::string _configFile;
diff --git a/test/handler_unittest.cpp b/test/handler_unittest.cpp
index a95d1df..9656364 100644
--- a/test/handler_unittest.cpp
+++ b/test/handler_unittest.cpp
@@ -146,7 +146,7 @@
}
protected:
- sdbusplus::bus::bus getDbus() const override
+ sdbusplus::bus_t getDbus() const override
{
return sdbusplus::get_mocked_new(
const_cast<sdbusplus::SdBusMock*>(mock_));