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

Unified Diff: components/url_matcher/string_pattern.cc

Issue 1456263005: Revert of Use std::tie() for operator< in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « components/policy/core/common/policy_namespace.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_matcher/string_pattern.cc
diff --git a/components/url_matcher/string_pattern.cc b/components/url_matcher/string_pattern.cc
index a4b87bcaad52bb5d9fab1405ca73121818684c64..d103bced3e255de4762f5d87a3d8b237c287f93b 100644
--- a/components/url_matcher/string_pattern.cc
+++ b/components/url_matcher/string_pattern.cc
@@ -3,8 +3,6 @@
// found in the LICENSE file.
#include "components/url_matcher/string_pattern.h"
-
-#include <tuple>
namespace url_matcher {
@@ -15,7 +13,8 @@
StringPattern::~StringPattern() {}
bool StringPattern::operator<(const StringPattern& rhs) const {
- return std::tie(id_, pattern_) < std::tie(rhs.id_, rhs.pattern_);
+ if (id_ != rhs.id_) return id_ < rhs.id_;
+ return pattern_ < rhs.pattern_;
}
} // namespace url_matcher
« no previous file with comments | « components/policy/core/common/policy_namespace.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698