@@ -3665,7 +3665,7 @@ int main(int argc, char ** argv) {
36653665 res.status = 200 ; // HTTP OK
36663666 };
36673667
3668- const auto handle_slot_type = [&ctx_server, &res_error, &res_ok, ¶ms](const httplib::Request & req,
3668+ const auto handle_slot_impl = [&ctx_server, &res_error, &res_ok, ¶ms](const httplib::Request & req,
36693669 httplib::Response & res, int id_slot, server_task_type type) {
36703670 json request_data = json::parse (req.body );
36713671 std::string filename = request_data.at (" filename" );
@@ -3698,12 +3698,12 @@ int main(int argc, char ** argv) {
36983698 res_ok (res, result->to_json ());
36993699 };
37003700
3701- const auto handle_slots_save = [&handle_slot_type ](const httplib::Request & req, httplib::Response & res, int id_slot) {
3702- handle_slot_type (req, res, id_slot, SERVER_TASK_TYPE_SLOT_SAVE);
3701+ const auto handle_slots_save = [&handle_slot_impl ](const httplib::Request & req, httplib::Response & res, int id_slot) {
3702+ handle_slot_impl (req, res, id_slot, SERVER_TASK_TYPE_SLOT_SAVE);
37033703 };
37043704
3705- const auto handle_slots_restore = [&handle_slot_type ](const httplib::Request & req, httplib::Response & res, int id_slot) {
3706- handle_slot_type (req, res, id_slot, SERVER_TASK_TYPE_SLOT_RESTORE);
3705+ const auto handle_slots_restore = [&handle_slot_impl ](const httplib::Request & req, httplib::Response & res, int id_slot) {
3706+ handle_slot_impl (req, res, id_slot, SERVER_TASK_TYPE_SLOT_RESTORE);
37073707 };
37083708
37093709 const auto handle_slots_erase = [&ctx_server, &res_error, &res_ok](const httplib::Request & /* req */ , httplib::Response & res, int id_slot) {
0 commit comments