diff --git a/tests/unit/test_linux_consumers.cpp b/tests/unit/test_linux_consumers.cpp index 0df2ee0..729b168 100644 --- a/tests/unit/test_linux_consumers.cpp +++ b/tests/unit/test_linux_consumers.cpp @@ -699,8 +699,7 @@ namespace { const auto deadline = std::chrono::steady_clock::now() + std::chrono::seconds {3}; while ( std::chrono::steady_clock::now() < deadline && - SDL_GameControllerGetAxis(controller.get(), SDL_CONTROLLER_AXIS_TRIGGERRIGHT) < 16000 - ) { + SDL_GameControllerGetAxis(controller.get(), SDL_CONTROLLER_AXIS_TRIGGERRIGHT) < 16000) { SDL_GameControllerUpdate(); pump_sdl_events(); std::this_thread::sleep_for(std::chrono::milliseconds {20}); diff --git a/third-party/lizardbyte-common b/third-party/lizardbyte-common index 06cd442..011ad2b 160000 --- a/third-party/lizardbyte-common +++ b/third-party/lizardbyte-common @@ -1 +1 @@ -Subproject commit 06cd442b808f02f1674f3192a84d25b9a503c482 +Subproject commit 011ad2bb139083dcf4ec21f9c09f07470891a668 diff --git a/tools/virtualhid_control.cpp b/tools/virtualhid_control.cpp index 3c49df9..35def9d 100644 --- a/tools/virtualhid_control.cpp +++ b/tools/virtualhid_control.cpp @@ -365,8 +365,7 @@ namespace { void render_device_panel(const std::vector &devices) { ImGui::TextUnformatted("Profile"); const auto *choice = current_profile_choice(); - if (const auto preview = choice == nullptr ? std::string {"Select profile"} : to_utf8(choice->label); - ImGui::BeginCombo("##profile", preview.c_str())) { + if (const auto preview = choice == nullptr ? std::string {"Select profile"} : to_utf8(choice->label); ImGui::BeginCombo("##profile", preview.c_str())) { for (std::size_t index = 0; index < profile_choices.size(); ++index) { const auto label = to_utf8(profile_choices[index].label); const auto selected = index == profile_index_; @@ -549,8 +548,7 @@ namespace { { ScopedDisabled disabled {!enabled}; - if (const auto state_label = to_utf8(battery_choices[static_cast(battery_state_index_)].label); - ImGui::BeginCombo("State", state_label.c_str())) { + if (const auto state_label = to_utf8(battery_choices[static_cast(battery_state_index_)].label); ImGui::BeginCombo("State", state_label.c_str())) { for (std::size_t index = 0; index < battery_choices.size(); ++index) { const auto label = to_utf8(battery_choices[index].label); const auto selected_state = static_cast(index) == battery_state_index_;