summaryrefslogtreecommitdiff
path: root/src/wx/editable_list.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-08 21:37:18 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-08 21:37:18 +0200
commit5d9de49a60c70dac3213ef8de040fcfe8bfc58aa (patch)
tree5129b363a8f526781bcf7fe7bb6c2495c28d53f1 /src/wx/editable_list.h
parent673198c0822cd332ec47f0e8a502db02594d6b10 (diff)
Use wxString for EditableListColumn.
Diffstat (limited to 'src/wx/editable_list.h')
-rw-r--r--src/wx/editable_list.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/editable_list.h b/src/wx/editable_list.h
index 58d0e3885..d53da6cbe 100644
--- a/src/wx/editable_list.h
+++ b/src/wx/editable_list.h
@@ -31,18 +31,18 @@
class EditableListColumn
{
public:
- EditableListColumn (std::string name_)
+ EditableListColumn (wxString name_)
: name (name_)
, growable (false)
{}
- EditableListColumn (std::string name_, boost::optional<int> width_, bool growable_)
+ EditableListColumn (wxString name_, boost::optional<int> width_, bool growable_)
: name (name_)
, width (width_)
, growable (growable_)
{}
- std::string name;
+ wxString name;
boost::optional<int> width;
bool growable;
};
@@ -104,7 +104,7 @@ public:
BOOST_FOREACH (EditableListColumn i, _columns) {
wxListItem ip;
ip.SetId (j);
- ip.SetText (std_to_wx(i.name));
+ ip.SetText (i.name);
_list->InsertColumn (j, ip);
++j;
}