Guest User

Untitled

a guest
Aug 18th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | None | 0 0
  1. diff --git a/ui/base/l10n/l10n_util_collator.h b/ui/base/l10n/l10n_util_collator.h
  2. index a87784c..9b53225 100644
  3. --- a/ui/base/l10n/l10n_util_collator.h
  4. +++ b/ui/base/l10n/l10n_util_collator.h
  5. @@ -94,7 +94,7 @@ class StringComparator : public std::binary_function<const Element&,
  6.        : collator_(collator) { }
  7.  
  8.    // Returns true if lhs precedes rhs.
  9. -  bool operator()(const Element& lhs, const Element& rhs) {
  10. +  bool operator()(const Element& lhs, const Element& rhs) const {
  11.      const base::string16& lhs_string_key = lhs.GetStringKey();
  12.      const base::string16& rhs_string_key = rhs.GetStringKey();
  13.  
  14. @@ -110,7 +110,7 @@ class StringComparator : public std::binary_function<const Element&,
  15.  template <>
  16.  UI_BASE_EXPORT inline bool StringComparator<base::string16>::operator()(
  17.      const base::string16& lhs,
  18. -    const base::string16& rhs) {
  19. +    const base::string16& rhs) const {
  20.    // If we can not get collator instance for specified locale, just do simple
  21.    // string compare.
  22.    if (!collator_)
Advertisement
Add Comment
Please, Sign In to add comment