Fix compilation if wxstring is wide character based
This commit is contained in:
parent
0243e3fc53
commit
0658872a7f
1 changed files with 2 additions and 2 deletions
|
@ -1801,7 +1801,7 @@ namespace
|
||||||
s1->Add(new wxStaticText(this, wxID_ANY, towxstring("Set " + name + " to value:")), 0,
|
s1->Add(new wxStaticText(this, wxID_ANY, towxstring("Set " + name + " to value:")), 0,
|
||||||
wxGROW);
|
wxGROW);
|
||||||
|
|
||||||
s1->Add(sp = new wxSpinCtrl(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize,
|
s1->Add(sp = new wxSpinCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize,
|
||||||
wxSP_ARROW_KEYS, minval, maxval, parse_value<int64_t>(val)), 1, wxGROW);
|
wxSP_ARROW_KEYS, minval, maxval, parse_value<int64_t>(val)), 1, wxGROW);
|
||||||
|
|
||||||
wxBoxSizer* pbutton_s = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* pbutton_s = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
@ -1854,7 +1854,7 @@ namespace
|
||||||
|
|
||||||
s1->SetSizeHints(this);
|
s1->SetSizeHints(this);
|
||||||
}
|
}
|
||||||
std::string get_value() { return towxstring(pth->GetValue()); }
|
std::string get_value() { return tostdstring(pth->GetValue()); }
|
||||||
void on_pbutton(wxCommandEvent& e) {
|
void on_pbutton(wxCommandEvent& e) {
|
||||||
wxDirDialog* d;
|
wxDirDialog* d;
|
||||||
d = new wxDirDialog(this, wxT("Select project directory"),
|
d = new wxDirDialog(this, wxT("Select project directory"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue