diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-11-03 22:10:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-11-03 22:10:51 +0100 |
| commit | e6d27dbfe364a7f74799a20cdb061320ebd4a894 (patch) | |
| tree | fc778f61a170df132a92cc1e63c3ba0d8e2dbe7b /src/wx/controls.cc | |
| parent | efa6a3795ba4b9c334ea9b131785a5d4fadb893c (diff) | |
Remove some make_wx() that are not necessary.
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 21423ff3a..5ddcfb6e5 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -378,10 +378,10 @@ Controls::setup_sensitivity () void Controls::timecode_clicked () { - auto dialog = make_wx<PlayheadToTimecodeDialog>(this, _viewer.position(), _film->video_frame_rate()); + PlayheadToTimecodeDialog dialog(this, _viewer.position(), _film->video_frame_rate()); - if (dialog->ShowModal() == wxID_OK) { - _viewer.seek(dialog->get(), true); + if (dialog.ShowModal() == wxID_OK) { + _viewer.seek(dialog.get(), true); } } @@ -389,10 +389,10 @@ Controls::timecode_clicked () void Controls::frame_number_clicked () { - auto dialog = make_wx<PlayheadToFrameDialog>(this, _viewer.position(), _film->video_frame_rate()); + PlayheadToFrameDialog dialog(this, _viewer.position(), _film->video_frame_rate()); - if (dialog->ShowModal() == wxID_OK) { - _viewer.seek(dialog->get(), true); + if (dialog.ShowModal() == wxID_OK) { + _viewer.seek(dialog.get(), true); } } |
