From 7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 20 Aug 2009 10:23:39 +0000 Subject: (svn r17228) -Codechange: some coding style fixes --- src/misc/binaryheap.hpp | 3 +-- src/misc/blob.hpp | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/misc') diff --git a/src/misc/binaryheap.hpp b/src/misc/binaryheap.hpp index 7fce75356..d80a0ce26 100644 --- a/src/misc/binaryheap.hpp +++ b/src/misc/binaryheap.hpp @@ -185,8 +185,7 @@ inline void CBinaryHeapT::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--; } diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp index 5403adcce..9c68d9db9 100644 --- a/src/misc/blob.hpp +++ b/src/misc/blob.hpp @@ -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; + } } } -- cgit v1.2.3-70-g09d2