diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-27 23:28:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-27 23:28:27 +0100 |
| commit | 47c34c6c7c82396b62e101283cb25b8726dbaefd (patch) | |
| tree | 2a4117899fcaddc7d5b9aae89315cecd145174c8 /src/wx/content_sub_panel.cc | |
| parent | 05502433d24e916bd99db3bac26b4903f961da06 (diff) | |
why_not in can_reference can just be a string rather than a list of strings.
Diffstat (limited to 'src/wx/content_sub_panel.cc')
| -rw-r--r-- | src/wx/content_sub_panel.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index e0e0cd12b..92eb5a32f 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -42,7 +42,7 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) } void -ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent> dcp, bool can_reference, list<string> why_not) const +ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent> dcp, bool can_reference, string why_not) const { button->Enable (can_reference); @@ -50,10 +50,7 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent> if (!dcp) { s = _("No DCP selected."); } else if (!can_reference) { - s = _("Cannot reference this DCP. "); - BOOST_FOREACH (string i, why_not) { - s += std_to_wx(i) + wxT(" "); - } + s = _("Cannot reference this DCP. ") + std_to_wx(why_not); } button->SetToolTip (s); |
