* Cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-07-28 21:49:28 +00:00
parent 71d2034366
commit 61efcc328d

View File

@ -208,7 +208,8 @@ private:
class Get : public Action { class Get : public Action {
public: public:
Get(block_cache* cache, cached_block* block) Get(block_cache* cache, cached_block* block)
: Action(cache, block) :
Action(cache, block)
{ {
Initialized(); Initialized();
} }
@ -219,7 +220,8 @@ public:
class Put : public Action { class Put : public Action {
public: public:
Put(block_cache* cache, cached_block* block) Put(block_cache* cache, cached_block* block)
: Action(cache, block) :
Action(cache, block)
{ {
Initialized(); Initialized();
} }
@ -230,7 +232,8 @@ public:
class Read : public Action { class Read : public Action {
public: public:
Read(block_cache* cache, cached_block* block) Read(block_cache* cache, cached_block* block)
: Action(cache, block) :
Action(cache, block)
{ {
Initialized(); Initialized();
} }
@ -241,7 +244,8 @@ public:
class Write : public Action { class Write : public Action {
public: public:
Write(block_cache* cache, cached_block* block) Write(block_cache* cache, cached_block* block)
: Action(cache, block) :
Action(cache, block)
{ {
Initialized(); Initialized();
} }
@ -252,7 +256,8 @@ public:
class Flush : public Action { class Flush : public Action {
public: public:
Flush(block_cache* cache, cached_block* block, bool getUnused = false) Flush(block_cache* cache, cached_block* block, bool getUnused = false)
: Action(cache, block), :
Action(cache, block),
fGetUnused(getUnused) fGetUnused(getUnused)
{ {
Initialized(); Initialized();
@ -434,7 +439,7 @@ private:
namespace TransactionTracing { namespace TransactionTracing {
class Action : public AbstractTraceEntry { class Action : public AbstractTraceEntry {
public: public:
Action(const char* label, block_cache* cache, Action(const char* label, block_cache* cache,
cache_transaction* transaction) cache_transaction* transaction)
: :
@ -456,10 +461,10 @@ class Action : public AbstractTraceEntry {
fSub ? " sub" : "", fNumBlocks, fSubNumBlocks); fSub ? " sub" : "", fNumBlocks, fSubNumBlocks);
} }
private: private:
char fLabel[12]; char fLabel[12];
block_cache *fCache; block_cache* fCache;
cache_transaction *fTransaction; cache_transaction* fTransaction;
int32 fID; int32 fID;
bool fSub; bool fSub;
int32 fNumBlocks; int32 fNumBlocks;
@ -467,7 +472,7 @@ class Action : public AbstractTraceEntry {
}; };
class Detach : public AbstractTraceEntry { class Detach : public AbstractTraceEntry {
public: public:
Detach(block_cache* cache, cache_transaction* transaction, Detach(block_cache* cache, cache_transaction* transaction,
cache_transaction* newTransaction) cache_transaction* newTransaction)
: :
@ -489,17 +494,17 @@ class Detach : public AbstractTraceEntry {
fSub ? " sub" : ""); fSub ? " sub" : "");
} }
private: private:
block_cache *fCache; block_cache* fCache;
cache_transaction *fTransaction; cache_transaction* fTransaction;
int32 fID; int32 fID;
bool fSub; bool fSub;
cache_transaction *fNewTransaction; cache_transaction* fNewTransaction;
int32 fNewID; int32 fNewID;
}; };
class Abort : public AbstractTraceEntry { class Abort : public AbstractTraceEntry {
public: public:
Abort(block_cache* cache, cache_transaction* transaction) Abort(block_cache* cache, cache_transaction* transaction)
: :
fCache(cache), fCache(cache),
@ -530,11 +535,11 @@ class Abort : public AbstractTraceEntry {
out.Print(" %Ld", fBlocks[i]); out.Print(" %Ld", fBlocks[i]);
} }
private: private:
block_cache *fCache; block_cache* fCache;
cache_transaction *fTransaction; cache_transaction* fTransaction;
int32 fID; int32 fID;
off_t *fBlocks; off_t* fBlocks;
int32 fNumBlocks; int32 fNumBlocks;
}; };