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

Unified Diff: views/view.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: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index fcd2a62fb87b44435796a9dfda487e96d467c752..2abff87bc8b47adeb6cbcf086cd8128bf117913a 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -554,10 +554,7 @@ void View::GetViewsWithGroup(int group_id, std::vector<View*>* out) {
View* View::GetSelectedViewForGroup(int group_id) {
std::vector<View*> views;
GetWidget()->GetRootView()->GetViewsWithGroup(group_id, &views);
- if (views.size() > 0)
- return views[0];
- else
- return NULL;
+ return views.empty() ? NULL : views[0];
}
// Coordinate conversion -------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698