More whitespace cleanup all over the place.

This commit is contained in:
Michael Lotz
2015-04-10 15:05:14 +02:00
parent 416255de4e
commit e01de52283
6 changed files with 41 additions and 35 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ public:
protected:
// Archiving hook methods
virtual status_t AllArchived(BMessage* archive) const;
virtual status_t AllArchived(BMessage* archive) const;
virtual status_t AllUnarchived(const BMessage* from);
virtual status_t ItemArchived(BMessage* into, BLayoutItem* item,
+1 -1
View File
@@ -448,7 +448,7 @@ extern status_t _kern_close_port(port_id id);
extern status_t _kern_delete_port(port_id id);
extern port_id _kern_find_port(const char *port_name);
extern status_t _kern_get_port_info(port_id id, struct port_info *info);
extern status_t _kern_get_next_port_info(team_id team, int32 *cookie,
extern status_t _kern_get_next_port_info(team_id team, int32 *cookie,
struct port_info *info);
extern ssize_t _kern_port_buffer_size_etc(port_id port, uint32 flags,
bigtime_t timeout);
+1 -1
View File
@@ -194,7 +194,7 @@ BCardLayout::DoLayout()
size.height = max_c(size.height, fMin.height);
}
if (fVisibleItem != NULL)
if (fVisibleItem != NULL)
fVisibleItem->AlignInFrame(BRect(LayoutArea().LeftTop(), size));
}
+13 -7
View File
@@ -26,9 +26,11 @@
#include <stdlib.h>
#include <new>
#define MAGIC1 0x9183f4d9
#define MAGIC2 0xa6b3c87d
struct BBlockCache::_FreeBlock {
DEBUG_ONLY( uint32 magic1; )
_FreeBlock *next;
@@ -42,13 +44,13 @@ struct BBlockCache::_FreeBlock {
// Thus we need to create multiple small ones.
// We maintain a list of free blocks.
BBlockCache::BBlockCache(uint32 blockCount,
size_t blockSize,
uint32 allocationType)
: fFreeList(0),
fBlockSize(blockSize),
fFreeBlocks(0),
fBlockCount(blockCount),
BBlockCache::BBlockCache(uint32 blockCount, size_t blockSize,
uint32 allocationType)
:
fFreeList(0),
fBlockSize(blockSize),
fFreeBlocks(0),
fBlockCount(blockCount),
fLocker("some BBlockCache lock"),
fAlloc(0),
fFree(0)
@@ -87,6 +89,7 @@ BBlockCache::BBlockCache(uint32 blockCount,
}
}
BBlockCache::~BBlockCache()
{
// walk the free list and deallocate all blocks
@@ -102,6 +105,7 @@ BBlockCache::~BBlockCache()
fLocker.Unlock();
}
void *
BBlockCache::Get(size_t blockSize)
{
@@ -126,6 +130,7 @@ BBlockCache::Get(size_t blockSize)
return pointer;
}
void
BBlockCache::Save(void *pointer, size_t blockSize)
{
@@ -146,5 +151,6 @@ BBlockCache::Save(void *pointer, size_t blockSize)
fLocker.Unlock();
}
void BBlockCache::_ReservedBlockCache1() {}
void BBlockCache::_ReservedBlockCache2() {}