mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Don't use locale facilities for sorting on systems which don't have
support for wchar_t and are missing proper locale facets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19012 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e567f1aff2
commit
9720992369
@ -1108,6 +1108,12 @@ class Sorter
|
||||
LanguagePair, bool>
|
||||
{
|
||||
public:
|
||||
#if !defined(USE_WCHAR_T) && defined(__GNUC__)
|
||||
bool operator()(LanguagePair const & lhs,
|
||||
LanguagePair const & rhs) const {
|
||||
return lhs.first < rhs.first;
|
||||
}
|
||||
#else
|
||||
Sorter() : loc_("") {};
|
||||
bool operator()(LanguagePair const & lhs,
|
||||
LanguagePair const & rhs) const {
|
||||
@ -1115,6 +1121,7 @@ public:
|
||||
}
|
||||
private:
|
||||
std::locale loc_;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace anon
|
||||
|
Loading…
Reference in New Issue
Block a user