]> git.lyx.org Git - features.git/commitdiff
Don't use locale facilities for sorting on systems which don't have
authorEnrico Forestieri <forenr@lyx.org>
Mon, 9 Jul 2007 10:54:28 +0000 (10:54 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 9 Jul 2007 10:54:28 +0000 (10:54 +0000)
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

src/frontends/controllers/frontend_helpers.cpp

index 87e2936f640d27680940a95cdc72eb6b5188f49a..a272eb23092f7091e54ad3977f63b1f2a4f2c651 100644 (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