Build fixes, conversion of wxString into utf-8 std::string

This commit is contained in:
Vojtech Kral
2018-09-19 10:34:21 +02:00
parent e695164451
commit 51d504c720
5 changed files with 19 additions and 6 deletions

View File

@@ -991,6 +991,12 @@ wxString from_u8(const std::string &str)
return wxString::FromUTF8(str.c_str());
}
std::string into_u8(const wxString &str)
{
auto buffer_utf8 = str.utf8_str();
return std::string(buffer_utf8.data());
}
void set_model_events_from_perl(Model &model,
int event_object_selection_changed,
int event_object_settings_changed,