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 ------------------------------------------------------- |