drop struct keyword for non-packed objects
As a style decision, struct is often used with packed structures to
indicate they are used like C-structs. Cleanup this codebase to not use
the extra struct keyword throughout.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I2f83bb1989e4d1f2f843ba3e45fb82e04f0fa61c
diff --git a/dbus/dbuspassive.cpp b/dbus/dbuspassive.cpp
index 6667bc4..0c73db2 100644
--- a/dbus/dbuspassive.cpp
+++ b/dbus/dbuspassive.cpp
@@ -50,7 +50,7 @@
/* service == busname */
std::string path = getSensorPath(type, id);
- struct SensorProperties settings;
+ SensorProperties settings;
bool failed;
try
@@ -79,8 +79,7 @@
DbusPassive::DbusPassive(
sdbusplus::bus::bus& bus, const std::string& type, const std::string& id,
std::unique_ptr<DbusHelperInterface> helper,
- const struct SensorProperties& settings, bool failed,
- const std::string& path,
+ const SensorProperties& settings, bool failed, const std::string& path,
const std::shared_ptr<DbusPassiveRedundancy>& redundancy) :
ReadInterface(),
_signal(bus, getMatch(type, id).c_str(), dbusHandleSignal, this), _id(id),
@@ -103,7 +102,7 @@
{
std::lock_guard<std::mutex> guard(_lock);
- struct ReadReturn r = {_value, _updated};
+ ReadReturn r = {_value, _updated};
return r;
}