From abada90e3f84dc703b8ddc9efcbed8a946fadead Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 1 Feb 2007 17:09:49 +0000 Subject: Expanded tabs into spaces --- cpp/src/Ice/Buffer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cpp/src/Ice/Buffer.cpp') diff --git a/cpp/src/Ice/Buffer.cpp b/cpp/src/Ice/Buffer.cpp index b0b4ffecdd7..ba09f6f3cfb 100644 --- a/cpp/src/Ice/Buffer.cpp +++ b/cpp/src/Ice/Buffer.cpp @@ -58,31 +58,31 @@ IceInternal::Buffer::Container::reserve(size_type n) { if(n > _capacity) { - _capacity = std::max(n, std::min(2 * _capacity, _maxCapacity)); - _capacity = std::max(static_cast(240), _capacity); + _capacity = std::max(n, std::min(2 * _capacity, _maxCapacity)); + _capacity = std::max(static_cast(240), _capacity); } else if(n < _capacity) { - _capacity = n; + _capacity = n; } else { - return; + return; } if(_buf) { - _buf = reinterpret_cast(::realloc(_buf, _capacity)); + _buf = reinterpret_cast(::realloc(_buf, _capacity)); } else { - _buf = reinterpret_cast(::malloc(_capacity)); + _buf = reinterpret_cast(::malloc(_capacity)); } - + if(!_buf) { - SyscallException ex(__FILE__, __LINE__); - ex.error = getSystemErrno(); - throw ex; + SyscallException ex(__FILE__, __LINE__); + ex.error = getSystemErrno(); + throw ex; } } -- cgit v1.2.3