]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.cpp
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / qt_helpers.cpp
index 3d3e36819f615b5b4b97c4b89c3281e0cbe8ce08..d2285101195527d6b4b189fb617d7f13b1ef32a1 100644 (file)
@@ -91,7 +91,7 @@ double locstringToDouble(QString const & str)
        return res;
 }
 
-} // namespace anon
+} // namespace
 
 
 namespace frontend {
@@ -214,6 +214,12 @@ QString formatLocFPNumber(double d)
 }
 
 
+bool SortLocaleAware(QString const & lhs, QString const & rhs)
+{
+       return QString::localeAwareCompare(lhs, rhs) < 0;
+}
+
+
 bool ColorSorter(ColorCode lhs, ColorCode rhs)
 {
        return compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;