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

Unified Diff: chrome/browser/ui/cocoa/task_manager_mac.mm

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/ui/cocoa/cocoa_test_helper.mm ('k') | chrome/browser/ui/gtk/dialogs_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/task_manager_mac.mm
diff --git a/chrome/browser/ui/cocoa/task_manager_mac.mm b/chrome/browser/ui/cocoa/task_manager_mac.mm
index 6a937bdf5d5f0d74431e485d2423bedc2c9c0ccd..345c41851c52cfa9aca08df6b2765230cda25545 100644
--- a/chrome/browser/ui/cocoa/task_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/task_manager_mac.mm
@@ -161,7 +161,7 @@ class SortHelper {
// Use the model indices to get the new view indices of the selection, and
// set selection to that. This assumes that no rows were added or removed
// (in that case, the selection is cleared before -reloadData is called).
- if (modelSelection.size() > 0)
+ if (!modelSelection.empty())
DCHECK_EQ([tableView_ numberOfRows], model_->ResourceCount());
NSMutableIndexSet* indexSet = [NSMutableIndexSet indexSet];
for (size_t i = 0; i < modelSelection.size(); ++i)
« no previous file with comments | « chrome/browser/ui/cocoa/cocoa_test_helper.mm ('k') | chrome/browser/ui/gtk/dialogs_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698