clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I39f8c77091744c8516e043054b4ed7207d85aa08
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/powermode.cpp b/powermode.cpp
index 14c3840..e367afc 100644
--- a/powermode.cpp
+++ b/powermode.cpp
@@ -684,7 +684,6 @@
// Loads the OEM mode data in the filesystem using cereal.
void OccPersistData::load()
{
-
std::filesystem::path ipath =
std::filesystem::path{OCC_CONTROL_PERSIST_PATH} / powerModeFilename;
@@ -751,9 +750,9 @@
std::string path = "/";
std::string service =
utils::getServiceUsingSubTree(PMODE_DEFAULT_INTERFACE, path);
- auto method =
- bus.new_method_call(service.c_str(), path.c_str(),
- "org.freedesktop.DBus.Properties", "Get");
+ auto method = bus.new_method_call(service.c_str(), path.c_str(),
+ "org.freedesktop.DBus.Properties",
+ "Get");
method.append(PMODE_DEFAULT_INTERFACE, "PowerMode");
auto reply = bus.call(method);
@@ -761,8 +760,8 @@
reply.read(stateEntryValue);
auto propVal = std::get<std::string>(stateEntryValue);
- const std::string fullModeString =
- PMODE_INTERFACE + ".PowerMode."s + propVal;
+ const std::string fullModeString = PMODE_INTERFACE + ".PowerMode."s +
+ propVal;
defaultMode = powermode::convertStringToMode(fullModeString);
if (!VALID_POWER_MODE_SETTING(defaultMode))
{
@@ -809,9 +808,9 @@
std::string path = "/";
std::string service =
utils::getServiceUsingSubTree(PMODE_DEFAULT_INTERFACE, path);
- auto method =
- bus.new_method_call(service.c_str(), path.c_str(),
- "org.freedesktop.DBus.Properties", "GetAll");
+ auto method = bus.new_method_call(service.c_str(), path.c_str(),
+ "org.freedesktop.DBus.Properties",
+ "GetAll");
method.append(PMODE_DEFAULT_INTERFACE);
auto reply = bus.call(method);
reply.read(ipsProperties);