[haiku-commits] r39525 - in haiku/trunk: headers/os/interface src/kits/interface

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 19 Nov 2010 22:26:54 +0100 (CET)

Author: bonefish
Date: 2010-11-19 22:26:54 +0100 (Fri, 19 Nov 2010)
New Revision: 39525
Changeset: http://dev.haiku-os.org/changeset/39525

Modified:
   haiku/trunk/headers/os/interface/Layout.h
   haiku/trunk/src/kits/interface/Layout.cpp
Log:
Made AncestorsVisible() const.


Modified: haiku/trunk/headers/os/interface/Layout.h
===================================================================
--- haiku/trunk/headers/os/interface/Layout.h   2010-11-19 21:01:29 UTC (rev 
39524)
+++ haiku/trunk/headers/os/interface/Layout.h   2010-11-19 21:26:54 UTC (rev 
39525)
@@ -44,7 +44,7 @@
                        int32                           IndexOfItem(const 
BLayoutItem* item) const;
                        int32                           IndexOfView(BView* 
child) const;
 
-                       bool                            AncestorsVisible();
+                       bool                            AncestorsVisible() 
const;
 
        // Layouting related methods
 

Modified: haiku/trunk/src/kits/interface/Layout.cpp
===================================================================
--- haiku/trunk/src/kits/interface/Layout.cpp   2010-11-19 21:01:29 UTC (rev 
39524)
+++ haiku/trunk/src/kits/interface/Layout.cpp   2010-11-19 21:26:54 UTC (rev 
39525)
@@ -267,7 +267,7 @@
 
 
 bool
-BLayout::AncestorsVisible()
+BLayout::AncestorsVisible() const
 {
        return fAncestorsVisible;
 }
@@ -286,7 +286,7 @@
 
        if (children) {
                for (int32 i = CountItems() - 1; i >= 0; i--)
-                       ItemAt(i)->InvalidateLayout(children);  
+                       ItemAt(i)->InvalidateLayout(children);
        }
 
        if (fOwner && BView::Private(fOwner).MinMaxValid())
@@ -366,7 +366,7 @@
 }
 
 
-       
+
 void
 BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
 {
@@ -392,7 +392,7 @@
                // already been triggered).
                int32 nestedLayoutCount = fNestedLayouts.CountItems();
                for (int32 i = 0; i < nestedLayoutCount; i++) {
-                       BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i); 
+                       BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i);
                        if ((layout->fState & B_LAYOUT_NECESSARY) != 0)
                                layout->_LayoutWithinContext(force, context);
                }
@@ -462,7 +462,7 @@
                err = ItemUnarchived(from, item, i);
                if (err != B_OK) {
                        fItems.RemoveItem(i);
-                       ItemRemoved(item, i);   
+                       ItemRemoved(item, i);
                        return err;
                }
 


Other related posts:

  • » [haiku-commits] r39525 - in haiku/trunk: headers/os/interface src/kits/interface - ingo_weinhold