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/dbusactiveread.cpp b/dbus/dbusactiveread.cpp
index 689a85d..3d0ed79 100644
--- a/dbus/dbusactiveread.cpp
+++ b/dbus/dbusactiveread.cpp
@@ -28,7 +28,7 @@
ReadReturn DbusActiveRead::read(void)
{
- struct SensorProperties settings;
+ SensorProperties settings;
double value;
_helper->getProperties(_service, _path, &settings);
@@ -39,7 +39,7 @@
* Technically it might not be a value from now, but there's no timestamp
* on Sensor.Value yet.
*/
- struct ReadReturn r = {value, std::chrono::high_resolution_clock::now()};
+ ReadReturn r = {value, std::chrono::high_resolution_clock::now()};
return r;
}