style: format

This commit is contained in:
MistEO
2022-08-14 03:06:10 +08:00
parent 05ab248ebe
commit 75f9e1b63d
3 changed files with 2 additions and 6 deletions

View File

@@ -595,7 +595,7 @@ bool asst::Controller::screencap()
}
size_t header_size = data.size() - std_size;
bool is_all_zero =
std::all_of(data.data() + header_size, data.data() + std_size, std::logical_not<bool>{});
std::all_of(data.data() + header_size, data.data() + std_size, std::logical_not<bool>{});
if (is_all_zero) {
return false;
}
@@ -620,7 +620,7 @@ bool asst::Controller::screencap()
}
size_t header_size = unzip_data.size() - std_size;
bool is_all_zero =
std::all_of(unzip_data.data() + header_size, unzip_data.data() + std_size, std::logical_not<bool>{});
std::all_of(unzip_data.data() + header_size, unzip_data.data() + std_size, std::logical_not<bool>{});
if (is_all_zero) {
return false;
}

View File

@@ -28,8 +28,6 @@ bool asst::InfrastDormTask::_run()
click_confirm_button();
click_return_button();
}
return true;
}
@@ -118,7 +116,6 @@ bool asst::InfrastDormTask::opers_choose()
else {
swipe_of_operlist();
}
}
return true;
}

View File

@@ -20,6 +20,5 @@ namespace asst
int m_cur_dorm_index = 0;
int m_max_num_of_dorm = 4;
int m_finished_stage = 0;
};
}