mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
01ec30ca86
commit
e54afe6367
@ -449,19 +449,13 @@ namespace {
|
||||
|
||||
struct local_lowercase {
|
||||
char_type operator()(char_type c) const {
|
||||
if (!is_utf16(c))
|
||||
// We don't know how to lowercase a non-utf16 char
|
||||
return c;
|
||||
return qchar_to_ucs4(ucs4_to_qchar(c).toLower());
|
||||
return lowercase(c);
|
||||
}
|
||||
};
|
||||
|
||||
struct local_uppercase {
|
||||
char_type operator()(char_type c) const {
|
||||
if (!is_utf16(c))
|
||||
// We don't know how to uppercase a non-utf16 char
|
||||
return c;
|
||||
return qchar_to_ucs4(ucs4_to_qchar(c).toUpper());
|
||||
return uppercase(c);
|
||||
}
|
||||
};
|
||||
|
||||
@ -471,6 +465,7 @@ template<typename Char> struct local_ascii_lowercase {
|
||||
|
||||
} // end of anon namespace
|
||||
|
||||
|
||||
docstring const lowercase(docstring const & a)
|
||||
{
|
||||
docstring tmp(a);
|
||||
|
Loading…
Reference in New Issue
Block a user