From 268317bd9ddbb9a1a3745e7fba19ef3b00243774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 8 Jul 2010 16:04:41 +0000 Subject: [PATCH] * Style cleanups. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37434 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/Layout.h | 7 ++++--- headers/os/interface/LayoutItem.h | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/headers/os/interface/Layout.h b/headers/os/interface/Layout.h index a2fcc94701..2a59ab7110 100644 --- a/headers/os/interface/Layout.h +++ b/headers/os/interface/Layout.h @@ -5,16 +5,18 @@ #ifndef _LAYOUT_H #define _LAYOUT_H + #include #include #include #include + class BLayoutItem; class BView; -class BLayout: public BArchivable { +class BLayout : public BArchivable { public: BLayout(); BLayout(BMessage* archive); @@ -58,13 +60,11 @@ public: BLayoutItem* item); protected: - // TODO: Since memory allocations can fail, we should return a bool and // undo the addition, if false. virtual void ItemAdded(BLayoutItem* item); virtual void ItemRemoved(BLayoutItem* item); - private: friend class BView; @@ -74,4 +74,5 @@ private: BList fItems; }; + #endif // _LAYOUT_H diff --git a/headers/os/interface/LayoutItem.h b/headers/os/interface/LayoutItem.h index 391a2ff2b7..f2311437a0 100644 --- a/headers/os/interface/LayoutItem.h +++ b/headers/os/interface/LayoutItem.h @@ -5,14 +5,17 @@ #ifndef _LAYOUT_ITEM_H #define _LAYOUT_ITEM_H + #include #include #include #include + class BLayout; class BView; + class BLayoutItem: public BArchivable { public: BLayoutItem(); @@ -53,8 +56,7 @@ public: virtual status_t Archive(BMessage* into, bool deep = true) const; virtual status_t AllArchived(BMessage* into) const; virtual status_t AllUnarchived(const BMessage* from); - - + private: friend class BLayout; @@ -64,4 +66,5 @@ private: void* fLayoutData; }; + #endif // _LAYOUT_ITEM_H