Skip to content

Commit

Permalink
🎨 Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SindriTh committed Dec 6, 2023
1 parent f184a4a commit cbdf84d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exes/ttui/src/ttui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ auto match_callback(sdbusplus::message_t& msg) -> void {
// std::cout << msg.get_interface() << std::endl;
// std::cout << msg.get_path() << std::endl;
if (msg.get_member() && std::string(msg.get_member()) == "PropertiesChanged") {
std::tuple<std::string, std::vector<std::pair<std::string, std::variant<bool, uint64_t>>>, std::vector<std::string>> container{};
std::tuple<std::string, std::vector<std::pair<std::string, std::variant<bool, uint64_t>>>, std::vector<std::string>>
container{};
if (sdbusplus::utility::read_into_tuple(container, msg)) {
std::string const& interface = std::get<0>(container);
std::visit([&interface](auto& value) { std::cout << interface << ": " << value << std::endl; }, std::get<1>(container)[0].second);
std::visit([&interface](auto& value) { std::cout << interface << ": " << value << std::endl; },
std::get<1>(container)[0].second);
}
}
}
Expand Down

0 comments on commit cbdf84d

Please sign in to comment.