summaryrefslogtreecommitdiff
path: root/src/wx/content_advanced_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-12 00:32:24 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-12 01:24:06 +0100
commitd76282f8fd1541e1834da0a55683beea110d3ee4 (patch)
tree8644f23d2032c5f8a95dcce262608d7a65705828 /src/wx/content_advanced_dialog.cc
parent5c56ba16de3d9ed6ca800ee1cdf4a894cd9ac6d6 (diff)
Cleanup: compress an if.
Diffstat (limited to 'src/wx/content_advanced_dialog.cc')
-rw-r--r--src/wx/content_advanced_dialog.cc5
1 files changed, 2 insertions, 3 deletions
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_ptr<Conte
video_frame_rate_label->Enable (!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<string>(*vfr)));
+ if (auto const vfr = _content->video_frame_rate()) {
+ _video_frame_rate->SetValue(std_to_wx(locale_convert<string>(*vfr)));
}
_burnt_subtitle->SetValue (_content->video && static_cast<bool>(_content->video->burnt_subtitle_language()));