Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: ui/base/l10n/l10n_util_collator.h

Issue 1420333006: Remove uses of std::unary_function and std::binary_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/label_ptr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_collator.h
diff --git a/ui/base/l10n/l10n_util_collator.h b/ui/base/l10n/l10n_util_collator.h
index d2b95f26ae15b6698e490339b6e5c18e569b5e11..423f17a50da9b2b89ec58a8240f9abfdc9951210 100644
--- a/ui/base/l10n/l10n_util_collator.h
+++ b/ui/base/l10n/l10n_util_collator.h
@@ -22,10 +22,7 @@ namespace l10n_util {
// Used by SortStringsUsingMethod. Invokes a method on the objects passed to
// operator (), comparing the string results using a collator.
template <class T, class Method>
-class StringMethodComparatorWithCollator
- : public std::binary_function<const base::string16&,
- const base::string16&,
- bool> {
+class StringMethodComparatorWithCollator {
public:
StringMethodComparatorWithCollator(icu::Collator* collator, Method method)
: collator_(collator),
@@ -46,10 +43,7 @@ class StringMethodComparatorWithCollator
// Used by SortStringsUsingMethod. Invokes a method on the objects passed to
// operator (), comparing the string results using <.
template <class T, class Method>
-class StringMethodComparator
- : public std::binary_function<const base::string16&,
- const base::string16&,
- bool> {
+class StringMethodComparator {
public:
explicit StringMethodComparator(Method method) : method_(method) { }
@@ -88,9 +82,7 @@ void SortStringsUsingMethod(const std::string& locale,
// const base::string16& GetStringKey() const;
// This uses the locale specified in the constructor.
template <class Element>
-class StringComparator : public std::binary_function<const Element&,
- const Element&,
- bool> {
+class StringComparator {
public:
explicit StringComparator(icu::Collator* collator)
: collator_(collator) { }
« no previous file with comments | « tools/gn/label_ptr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698