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:
Enrico Forestieri 2007-07-09 10:54:28 +00:00
parent e567f1aff2
commit 9720992369

View File

@ -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