1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

(svn r17228) -Codechange: some coding style fixes

This commit is contained in:
rubidium
2009-08-20 10:23:39 +00:00
parent 0188ebad56
commit 7fb95e2c2b
13 changed files with 47 additions and 34 deletions

View File

@@ -185,8 +185,7 @@ inline void CBinaryHeapT<Titem_>::RemoveByIdx(int idx)
}
/* move parent to the proper place */
if (m_size > 0) m_items[gap] = &last;
}
else {
} else {
assert(idx == m_size);
m_size--;
}

View File

@@ -240,8 +240,11 @@ public:
{
if (MaxRawSize() > 0 && num_bytes > 0) {
assert(num_bytes <= RawSize());
if (num_bytes < RawSize()) RawSizeRef() -= num_bytes;
else RawSizeRef() = 0;
if (num_bytes < RawSize()) {
RawSizeRef() -= num_bytes;
} else {
RawSizeRef() = 0;
}
}
}