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

Unified Diff: webkit/tools/test_shell/accessibility_ui_element.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: webkit/tools/test_shell/accessibility_ui_element.cc
diff --git a/webkit/tools/test_shell/accessibility_ui_element.cc b/webkit/tools/test_shell/accessibility_ui_element.cc
index e1a9d1c4758d553558d40b2763d8a82a1ce8ed54..78988a99c71831985a877ecd5358a6e77fe9e972 100644
--- a/webkit/tools/test_shell/accessibility_ui_element.cc
+++ b/webkit/tools/test_shell/accessibility_ui_element.cc
@@ -362,7 +362,7 @@ void AccessibilityUIElement::StringForRangeCallback(
void AccessibilityUIElement::ChildAtIndexCallback(
const CppArgumentList& args, CppVariant* result) {
- if (args.size() == 0 || !args[0].isNumber()) {
+ if (args.empty() || !args[0].isNumber()) {
result->SetNull();
return;
}

Powered by Google App Engine
This is Rietveld 408576698