diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-07 07:06:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-07 07:06:43 +0100 |
| commit | 2f93574e2ddef467bd879d559340f7967642615d (patch) | |
| tree | f7946ba95e576cd420a289b47acc23619c8b414d /src/wx | |
| parent | 3bffa32ae5083a61222b42f74a002bb4e061cec0 (diff) | |
Make "why_not" reasons an optional return.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/dcp_referencing_dialog.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/dcp_referencing_dialog.cc b/src/wx/dcp_referencing_dialog.cc index 6d9a76481..337724092 100644 --- a/src/wx/dcp_referencing_dialog.cc +++ b/src/wx/dcp_referencing_dialog.cc @@ -168,34 +168,34 @@ DCPReferencingDialog::setup() string why_not; - if (!dcp_content->can_reuse_anything(_film, why_not)) { + if (!dcp_content->can_reuse_anything(_film, &why_not)) { for (auto const& part: all_parts) { record.check_box[part]->Enable(false); } add_problem(_("Cannot reference this DCP"), why_not); } else { - if (!dcp_content->can_reuse_video(_film, why_not)) { + if (!dcp_content->can_reuse_video(_film, &why_not)) { record.check_box[Part::VIDEO]->Enable(false); if (dcp_content->video) { add_problem(_("Cannot reference this DCP's video"), why_not); } } - if (!dcp_content->can_reuse_audio(_film, why_not)) { + if (!dcp_content->can_reuse_audio(_film, &why_not)) { record.check_box[Part::AUDIO]->Enable(false); if (dcp_content->audio) { add_problem(_("Cannot reference this DCP's audio"), why_not); } } - if (!dcp_content->can_reuse_text(_film, TextType::OPEN_SUBTITLE, why_not)) { + if (!dcp_content->can_reuse_text(_film, TextType::OPEN_SUBTITLE, &why_not)) { record.check_box[Part::SUBTITLES]->Enable(false); if (dcp_content->text_of_original_type(TextType::OPEN_SUBTITLE)) { add_problem(_("Cannot reference this DCP's subtitles"), why_not); } } - if (!dcp_content->can_reuse_text(_film, TextType::CLOSED_CAPTION, why_not)) { + if (!dcp_content->can_reuse_text(_film, TextType::CLOSED_CAPTION, &why_not)) { record.check_box[Part::CLOSED_CAPTIONS]->Enable(false); if (dcp_content->text_of_original_type(TextType::CLOSED_CAPTION)) { add_problem(_("Cannot reference this DCP's closed captions"), why_not); |
