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

Unified Diff: chrome/browser/accessibility/browser_accessibility_win.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Up 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
Index: chrome/browser/accessibility/browser_accessibility_win.cc
diff --git a/chrome/browser/accessibility/browser_accessibility_win.cc b/chrome/browser/accessibility/browser_accessibility_win.cc
index b5bf8945cf58754f3395e61051b51fd8a876f597..315c7e5bb69d996e566fa418f1383078c76cd29d 100644
--- a/chrome/browser/accessibility/browser_accessibility_win.cc
+++ b/chrome/browser/accessibility/browser_accessibility_win.cc
@@ -136,11 +136,11 @@ STDMETHODIMP BrowserAccessibilityWin::accNavigate(
// These directions are not implemented, matching Mozilla and IE.
return E_NOTIMPL;
case NAVDIR_FIRSTCHILD:
- if (target->children_.size() > 0)
+ if (!target->children_.empty())
result = target->children_[0];
break;
case NAVDIR_LASTCHILD:
- if (target->children_.size() > 0)
+ if (!target->children_.empty())
result = target->children_[target->children_.size() - 1];
Peter Kasting 2011/03/03 19:35:53 Nit: result = target->children_.back();
break;
case NAVDIR_NEXT:

Powered by Google App Engine
This is Rietveld 408576698