Fix #59: cast to Char, not char, the former is wchar_t, the latter is a byte

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1609 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-10 19:38:39 +00:00
parent a1b09b1fe1
commit ba700a3f0a
+1 -1
View File
@@ -439,7 +439,7 @@ String regex_escape(Char c) {
/// Escape a string for use in regular expressions
String regex_escape(const String& s) {
String ret;
FOR_EACH_CONST(c,s) ret += regex_escape(static_cast<char>(c));
FOR_EACH_CONST(c,s) ret += regex_escape(static_cast<Char>(c));
return ret;
}