mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Source: Remove redundant lambda parameter lists
This commit is contained in:
@ -53,7 +53,7 @@ std::vector<std::string> GlobalConflicts(std::string_view source)
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto parse_identifier = [&]() {
|
||||
const auto parse_identifier = [&] {
|
||||
const u32 start = i;
|
||||
for (; i < source.size(); i++)
|
||||
{
|
||||
@ -76,7 +76,7 @@ std::vector<std::string> GlobalConflicts(std::string_view source)
|
||||
}
|
||||
else if (source[i] == '#')
|
||||
{
|
||||
const auto parse_until_end_of_preprocessor = [&]() {
|
||||
const auto parse_until_end_of_preprocessor = [&] {
|
||||
bool continue_until_next_newline = false;
|
||||
for (; i < source.size(); i++)
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
|
||||
float window_y = window_padding;
|
||||
float window_x = display_size.x - window_padding;
|
||||
|
||||
const auto clamp_window_position = [&]() {
|
||||
const auto clamp_window_position = [&] {
|
||||
const ImVec2 position = ImGui::GetWindowPos();
|
||||
const ImVec2 size = ImGui::GetWindowSize();
|
||||
const float window_min_x = window_padding;
|
||||
|
@ -31,7 +31,7 @@ bool InitializeGlslang()
|
||||
return false;
|
||||
}
|
||||
|
||||
std::atexit([]() { glslang::FinalizeProcess(); });
|
||||
std::atexit([] { glslang::FinalizeProcess(); });
|
||||
|
||||
glslang_initialized = true;
|
||||
return true;
|
||||
|
@ -323,7 +323,7 @@ void Statistics::DisplayScissor()
|
||||
}
|
||||
};
|
||||
constexpr auto NUM_SCISSOR_COLUMNS = 8;
|
||||
const auto draw_scissor_table_header = [&]() {
|
||||
const auto draw_scissor_table_header = [&] {
|
||||
ImGui::TableSetupColumn("#");
|
||||
ImGui::TableSetupColumn("x0");
|
||||
ImGui::TableSetupColumn("y0");
|
||||
@ -413,7 +413,7 @@ void Statistics::DisplayScissor()
|
||||
}
|
||||
};
|
||||
constexpr auto NUM_VIEWPORT_COLUMNS = 5;
|
||||
const auto draw_viewport_table_header = [&]() {
|
||||
const auto draw_viewport_table_header = [&] {
|
||||
ImGui::TableSetupColumn("#");
|
||||
ImGui::TableSetupColumn("vx0");
|
||||
ImGui::TableSetupColumn("vy0");
|
||||
|
@ -125,7 +125,7 @@ void VertexLoaderX64::ReadVertex(OpArg data, VertexComponentFormat attribute,
|
||||
|
||||
X64Reg coords = XMM0;
|
||||
|
||||
const auto write_zfreeze = [&]() { // zfreeze
|
||||
const auto write_zfreeze = [&] { // zfreeze
|
||||
if (native_format == &m_native_vtx_decl.position)
|
||||
{
|
||||
CMP(32, R(remaining_reg), Imm8(3));
|
||||
|
@ -59,7 +59,7 @@ void VideoConfig::Refresh()
|
||||
// invalid values. Instead, pause the video thread first, update the config and correct
|
||||
// it, then resume emulation, after which the video thread will detect the config has
|
||||
// changed and act accordingly.
|
||||
const auto config_changed_callback = []() {
|
||||
const auto config_changed_callback = [] {
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
||||
const bool lock_gpu_thread = Core::IsRunning(system);
|
||||
|
Reference in New Issue
Block a user