Browse Source

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.
jp9000 4 years ago
parent
commit
c46a719c9c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UI/window-basic-main.cpp

+ 2 - 2
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<FilterAudioSources_t *>(
-				data))(source);
+			auto &func = *static_cast<FilterAudioSources_t *>(data);
+			return func(source);
 		},
 		static_cast<void *>(&FilterAudioSources));