From 36498b406abb3be754e84072d50f16d9dcbbfa8f Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Tue, 14 Apr 2026 07:26:31 -0400 Subject: 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 * object_path Change-Id: Iace20f9ad26e8d9dc234979e7a4087d599da2641 Signed-off-by: Patrick Williams --- docs/COMMON_ERRORS.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/COMMON_ERRORS.md b/docs/COMMON_ERRORS.md index d34c45e224..b25dd74404 100644 --- a/docs/COMMON_ERRORS.md +++ b/docs/COMMON_ERRORS.md @@ -301,9 +301,8 @@ avoid doing direct string containment matching. Doing so can lead to errors where fan1 and fan11 both report to the same object, and cause behavior breaks in subtle ways. -When using dbus paths, rely on the methods on `sdbusplus::message::object_path`. -When parsing HTTP field and lists, use the RFC7230 implementations from -boost::beast. +When using dbus paths, rely on the methods on `sdbusplus::object_path`. When +parsing HTTP field and lists, use the RFC7230 implementations from boost::beast. Other commonly misused methods are: boost::iequals. Unless the standard you're implementing (as is the case in some HTTP fields) requires case insensitive -- cgit v1.2.3