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:
@@ -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--;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user