diff options
Diffstat (limited to 'Libraries/LibGUI/FontDatabase.cpp')
-rw-r--r-- | Libraries/LibGUI/FontDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/FontDatabase.cpp b/Libraries/LibGUI/FontDatabase.cpp index 8c03572bd7..42e25f4491 100644 --- a/Libraries/LibGUI/FontDatabase.cpp +++ b/Libraries/LibGUI/FontDatabase.cpp @@ -71,7 +71,7 @@ void GFontDatabase::for_each_font(Function<void(const StringView&)> callback) names.ensure_capacity(m_name_to_metadata.size()); for (auto& it : m_name_to_metadata) names.append(it.key); - quick_sort(names.begin(), names.end(), AK::is_less_than<String>); + quick_sort(names); for (auto& name : names) callback(name); } @@ -84,7 +84,7 @@ void GFontDatabase::for_each_fixed_width_font(Function<void(const StringView&)> if (it.value.is_fixed_width) names.append(it.key); } - quick_sort(names.begin(), names.end(), AK::is_less_than<String>); + quick_sort(names); for (auto& name : names) callback(name); } |