Skip to content

Commit 5b189f6

Browse files
1 parent 8885479 commit 5b189f6

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

source/MaaFramework/Task/Component/Recognizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,7 @@ void Recognizer::register_sub_result_in_cache(const RecoResult& res)
622622

623623
auto& cache = tasker_->runtime_cache();
624624
auto sub_node_id = TaskBase::generate_node_id();
625-
cache.set_node_detail(
626-
sub_node_id,
627-
NodeDetail { .node_id = sub_node_id, .name = res.name, .reco_id = res.reco_id, .completed = true });
625+
cache.set_node_detail(sub_node_id, NodeDetail { .node_id = sub_node_id, .name = res.name, .reco_id = res.reco_id, .completed = true });
628626
cache.set_latest_node(res.name, sub_node_id);
629627
}
630628

source/MaaPiCli/Impl/Runner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ bool Runner::run(const RuntimeParam& param)
118118
}
119119
else if (const auto* p_wlroots_param = std::get_if<RuntimeParam::WlRootsParam>(&param.controller_param)) {
120120
#if defined(__linux__)
121-
controller_handle =
122-
MaaWlRootsControllerCreate(p_wlroots_param->wlr_socket_path.c_str(), p_wlroots_param->use_win32_vk_code);
121+
controller_handle = MaaWlRootsControllerCreate(p_wlroots_param->wlr_socket_path.c_str(), p_wlroots_param->use_win32_vk_code);
123122
#else
124123
std::ignore = p_wlroots_param;
125124
LogError << "WlRoots controller is only supported on Linux";

source/MaaWlRootsControlUnit/Client/VkToEvdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ MAA_CTRL_UNIT_NS_BEGIN
2020
// - VK codes: https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
2121
// - evdev codes: linux/input-event-codes.h
2222
inline constexpr auto kVkToEvdevTable = [] {
23-
std::array<int, 256> table {};
23+
std::array<int, 256> table { };
2424

2525
// 0x08..0x14 control keys
2626
table[0x08] = KEY_BACKSPACE; // VK_BACK

0 commit comments

Comments
 (0)