From d76282f8fd1541e1834da0a55683beea110d3ee4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 12 Mar 2026 00:32:24 +0100 Subject: Cleanup: compress an if. --- src/wx/content_advanced_dialog.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/wx/content_advanced_dialog.cc b/src/wx/content_advanced_dialog.cc index cc888aeb1..c16ab637f 100644 --- a/src/wx/content_advanced_dialog.cc +++ b/src/wx/content_advanced_dialog.cc @@ -125,9 +125,8 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptrEnable (!single_frame_image_content); _video_frame_rate->Enable (!single_frame_image_content); - auto vfr = _content->video_frame_rate (); - if (vfr) { - _video_frame_rate->SetValue (std_to_wx(locale_convert(*vfr))); + if (auto const vfr = _content->video_frame_rate()) { + _video_frame_rate->SetValue(std_to_wx(locale_convert(*vfr))); } _burnt_subtitle->SetValue (_content->video && static_cast(_content->video->burnt_subtitle_language())); -- cgit v1.2.3