From 603e1a2cf262d88102e8e0dbc589396a60bc2267 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 20 Jun 2014 18:33:13 -0400 Subject: [PATCH] Tracker: LockingList.h style fixes (minor) --- src/kits/tracker/LockingList.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/kits/tracker/LockingList.h b/src/kits/tracker/LockingList.h index 620dba785b..bcff2f9eaf 100644 --- a/src/kits/tracker/LockingList.h +++ b/src/kits/tracker/LockingList.h @@ -36,7 +36,7 @@ All rights reserved. #include -#include "ObjectList.h" +#include namespace BPrivate { @@ -46,9 +46,9 @@ class LockingList : public BObjectList { public: LockingList(int32 itemsPerBlock = 20, bool owning = false); ~LockingList() - { + { Lock(); - } + } bool Lock(); void Unlock(); @@ -61,7 +61,8 @@ private: template LockingList::LockingList(int32 itemsPerBlock, bool owning) - : BObjectList(itemsPerBlock, owning) + : + BObjectList(itemsPerBlock, owning) { } @@ -93,4 +94,5 @@ LockingList::IsLocked() const using namespace BPrivate; + #endif // _LOCKING_LIST_H