summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-27 23:58:01 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-27 23:58:01 +0100
commitb76463a45fad251c1c7dc1b65c54ae5d476c9d05 (patch)
tree04c4f71c0341d423a2cf3163411884b55b2e056a /src
parentf5e65d5f27f00d01d2f5d6b4d9390910713572f9 (diff)
Use some default initialisers.
Diffstat (limited to 'src')
-rw-r--r--src/wx/closed_captions_dialog.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/closed_captions_dialog.cc b/src/wx/closed_captions_dialog.cc
index 90c73c75e..7ff720546 100644
--- a/src/wx/closed_captions_dialog.cc
+++ b/src/wx/closed_captions_dialog.cc
@@ -94,7 +94,7 @@ ClosedCaptionsDialog::shown(wxShowEvent ev)
void
ClosedCaptionsDialog::track_selected()
{
- _current = optional<TextRingBuffers::Data>();
+ _current = {};
_viewer->slow_refresh();
update();
}
@@ -166,7 +166,7 @@ ClosedCaptionsDialog::update()
_lines[j] = wxString{};
}
Refresh();
- _current = optional<TextRingBuffers::Data>();
+ _current = {};
}
if (!_current && !_tracks.empty()) {
@@ -224,7 +224,7 @@ ClosedCaptionsDialog::update()
void
ClosedCaptionsDialog::clear()
{
- _current = optional<TextRingBuffers::Data>();
+ _current = {};
_current_in_lines = false;
Refresh();
}