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

Unified Diff: chrome/browser/history/history_types.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 years, 10 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 | « chrome/browser/history/history_publisher_win.cc ('k') | chrome/browser/history/query_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_types.cc
diff --git a/chrome/browser/history/history_types.cc b/chrome/browser/history/history_types.cc
index 65b1935aff1578c9c089a007cfef28d0a8b2838d..9f56ff0e0377e728589316498c6c061ee91af4d6 100644
--- a/chrome/browser/history/history_types.cc
+++ b/chrome/browser/history/history_types.cc
@@ -174,7 +174,7 @@ const size_t* QueryResults::MatchesForURL(const GURL& url,
// All entries in the map should have at least one index, otherwise it
// shouldn't be in the map.
- DCHECK(found->second->size() > 0);
+ DCHECK(!found->second->empty());
if (num_matches)
*num_matches = found->second->size();
return &found->second->front();
« no previous file with comments | « chrome/browser/history/history_publisher_win.cc ('k') | chrome/browser/history/query_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698