summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-31 23:14:17 +0200
committerCarl Hetherington <cth@carlh.net>2025-06-17 00:04:03 +0200
commit4fd50c15fc272797de804c199b987807e0644b8e (patch)
treefd92cb00102582d13c9ffb6adb90128cd07e457d
parent4e60d6a68356aaf12c4ee1aef4d1bf1d15f5384b (diff)
Add new Choice::add_entry() variant.
-rw-r--r--src/wx/dcpomatic_choice.cc7
-rw-r--r--src/wx/dcpomatic_choice.h1
2 files changed, 8 insertions, 0 deletions
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
@@ -90,6 +90,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)
{
if (GetStrings() == 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();