projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Various hacks.
[dcpomatic.git]
/
src
/
wx
/
wx_util.cc
diff --git
a/src/wx/wx_util.cc
b/src/wx/wx_util.cc
index 409ab361caeca8675bd7fbdad56bfd5c4ae10166..bb268ea68dea96784984fbba5f147f9acc737e67 100644
(file)
--- a/
src/wx/wx_util.cc
+++ b/
src/wx/wx_util.cc
@@
-43,3
+43,15
@@
error_dialog (string m)
d.run ();
}
#endif
+
+string
+wx_to_std (wxString s)
+{
+ return string (s.mb_str ());
+}
+
+wxString
+std_to_wx (string s)
+{
+ return wxString (s.c_str(), wxConvUTF8);
+}