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

Unified Diff: views/view.cc

Issue 7134028: views: Use child_count() instead of static_cast<int>(...). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index 45c9a284320e53bd44bb8b919865448a4dcf71b4..ca052a9e491ef95b6aca425f81a0f00c9c7318f3 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1759,7 +1759,7 @@ void View::UnregisterAccelerators(bool leave_data_intact) {
// Focus -----------------------------------------------------------------------
void View::InitFocusSiblings(View* v, int index) {
- int child_count = static_cast<int>(children_.size());
+ int child_count = child_count();
if (child_count == 0) {
v->next_focusable_view_ = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698