diff options
author | rubidium <rubidium@openttd.org> | 2006-08-28 18:53:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-28 18:53:03 +0000 |
commit | 86dc219b4b668913b2deb90bf7ddfe0a479e3acd (patch) | |
tree | 9de9b15a15bde4d4e092c3abfde1fae7eb2d76f0 /yapf/blob.hpp | |
parent | d8644d941d4205cb95890f84165c787872b36da5 (diff) | |
download | openttd-86dc219b4b668913b2deb90bf7ddfe0a479e3acd.tar.xz |
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
Diffstat (limited to 'yapf/blob.hpp')
-rw-r--r-- | yapf/blob.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yapf/blob.hpp b/yapf/blob.hpp index 0a60930cf..6cc460e41 100644 --- a/yapf/blob.hpp +++ b/yapf/blob.hpp @@ -21,7 +21,7 @@ FORCEINLINE void MemCpyT(Titem_* d, const Titem_* s, int num_items = 1) - no thread synchronization at all */ class CBlobBaseSimple { protected: - struct CHdr { + struct CHdr { int m_size; // actual blob size in bytes int m_max_size; // maximum (allocated) size in bytes }; @@ -66,7 +66,7 @@ public: assert(p != NULL); if (num_bytes > 0) { memcpy(GrowRawSize(num_bytes), p, num_bytes); - } else { + } else { assert(num_bytes >= 0); } } @@ -116,7 +116,7 @@ public: // ask allocation policy for some reasonable block size int alloc_size = AllocPolicy(min_alloc_size); // allocate new block - CHdr* pNewHdr = RawAlloc(alloc_size); + CHdr* pNewHdr = RawAlloc(alloc_size); // setup header pNewHdr->m_size = RawSize(); pNewHdr->m_max_size = alloc_size - (sizeof(CHdr) + Ttail_reserve); |