From 4fd50c15fc272797de804c199b987807e0644b8e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 31 May 2025 23:14:17 +0200 Subject: Add new Choice::add_entry() variant. --- src/wx/dcpomatic_choice.cc | 7 +++++++ src/wx/dcpomatic_choice.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/wx/dcpomatic_choice.cc b/src/wx/dcpomatic_choice.cc index 270ab72ad..0dd4359bb 100644 --- a/src/wx/dcpomatic_choice.cc +++ b/src/wx/dcpomatic_choice.cc @@ -89,6 +89,13 @@ Choice::add_entry(wxString const& entry, string const& data) } +void +Choice::add_entry(string const& entry, string const& data) +{ + add_entry(std_to_wx(entry), std_to_wx(data)); +} + + void Choice::set_entries(wxArrayString const& entries) { diff --git a/src/wx/dcpomatic_choice.h b/src/wx/dcpomatic_choice.h index 84ff45fcf..4506920e0 100644 --- a/src/wx/dcpomatic_choice.h +++ b/src/wx/dcpomatic_choice.h @@ -37,6 +37,7 @@ public: void add_entry(wxString const& entry, wxString const& data); void add_entry(wxString const& entry, std::string const& data); void add_entry(std::string const& entry); + void add_entry(std::string const& entry, std::string const& data); void set_entries(wxArrayString const& entries); void clear(); -- cgit v1.2.3