diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:47:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:47:14 +0100 |
| commit | e0255a64d22440d718e5512f34a4f21f0d37a21b (patch) | |
| tree | 61927018d28794c7c32c238bc37259bfddb2f01c /src/wx/audio_dialog.cc | |
| parent | 8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 (diff) | |
Use enum class for Film::Property.
Diffstat (limited to 'src/wx/audio_dialog.cc')
| -rw-r--r-- | src/wx/audio_dialog.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index b8c7f7b73..c27d9f061 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -101,7 +101,7 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, weak_ptr<Film wxBoxSizer* right = new wxBoxSizer (wxVERTICAL); { - wxStaticText* m = new StaticText (this, _("Channels")); + auto m = new StaticText (this, _("Channels")); m->SetFont (subheading_font); right->Add (m, 1, wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM, 16); } @@ -116,7 +116,7 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, weak_ptr<Film show_or_hide_channel_checkboxes (); { - wxStaticText* m = new StaticText (this, _("Type")); + auto m = new StaticText (this, _("Type")); m->SetFont (subheading_font); right->Add (m, 1, wxALIGN_CENTER_VERTICAL | wxTOP, 16); } @@ -133,7 +133,7 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, weak_ptr<Film } { - wxStaticText* m = new StaticText (this, _("Smoothing")); + auto m = new StaticText (this, _("Smoothing")); m->SetFont (subheading_font); right->Add (m, 1, wxALIGN_CENTER_VERTICAL | wxTOP, 16); } @@ -312,13 +312,13 @@ AudioDialog::channel_clicked (wxCommandEvent& ev) } void -AudioDialog::film_change (ChangeType type, int p) +AudioDialog::film_change (ChangeType type, Film::Property p) { if (type != ChangeType::DONE) { return; } - if (p == Film::AUDIO_CHANNELS) { + if (p == Film::Property::AUDIO_CHANNELS) { auto film = _film.lock (); if (film) { _channels = film->audio_channels (); |
