Remove redundant code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36353 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-17 21:41:23 +00:00
parent 01ec30ca86
commit e54afe6367

View File

@ -449,19 +449,13 @@ namespace {
struct local_lowercase { struct local_lowercase {
char_type operator()(char_type c) const { char_type operator()(char_type c) const {
if (!is_utf16(c)) return lowercase(c);
// We don't know how to lowercase a non-utf16 char
return c;
return qchar_to_ucs4(ucs4_to_qchar(c).toLower());
} }
}; };
struct local_uppercase { struct local_uppercase {
char_type operator()(char_type c) const { char_type operator()(char_type c) const {
if (!is_utf16(c)) return uppercase(c);
// We don't know how to uppercase a non-utf16 char
return c;
return qchar_to_ucs4(ucs4_to_qchar(c).toUpper());
} }
}; };
@ -471,6 +465,7 @@ template<typename Char> struct local_ascii_lowercase {
} // end of anon namespace } // end of anon namespace
docstring const lowercase(docstring const & a) docstring const lowercase(docstring const & a)
{ {
docstring tmp(a); docstring tmp(a);