From c46a719c9c68166aa6a467171721751ec57d229d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 13 Oct 2021 02:44:31 -0700 Subject: [PATCH] UI: Fix formatting with both 12.0.0 and 12.0.1 This single line in the entire project causes a difference between clang-format 12.0.0 and 12.0.1. So, just rearrange the code so it works with both instead. --- UI/window-basic-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 9b4b08957..557286115 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -512,8 +512,8 @@ static obs_data_t *GenerateSaveData(obs_data_array_t *sceneOrder, obs_data_array_t *sourcesArray = obs_save_sources_filtered( [](void *data, obs_source_t *source) { - return (*static_cast( - data))(source); + auto &func = *static_cast(data); + return func(source); }, static_cast(&FilterAudioSources));