Fix type conversion errors in GCC/wxGTK

This commit is contained in:
Twan van Laarhoven
2020-04-25 22:02:37 +02:00
parent 64ea1d7322
commit 0d42df1537
4 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -198,9 +198,9 @@ String name_to_caption(const String& str) {
String ret;
ret.reserve(str.size());
bool leading = true, first = true;
FOR_EACH_CONST(c, str) {
for (wxUniChar c : str) {
if ((c == _('_') || c == _(' '))) {
ret += leading ? c : _(' ');
ret += leading ? c : wxUniChar(_(' '));
} else if (first) {
// capitalize_sentence
ret += toUpper(c);