diff options
Diffstat (limited to 'cpp/src/Ice/Buffer.cpp')
-rw-r--r-- | cpp/src/Ice/Buffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/Ice/Buffer.cpp b/cpp/src/Ice/Buffer.cpp index 516721d8fd7..9b3956c4f5d 100644 --- a/cpp/src/Ice/Buffer.cpp +++ b/cpp/src/Ice/Buffer.cpp @@ -75,9 +75,7 @@ IceInternal::Buffer::Container::reserve(size_type n) if(!p) { _capacity = c; // Restore the previous capacity. - SyscallException ex(__FILE__, __LINE__); - ex.error = getSystemErrno(); - throw ex; + throw std::bad_alloc(); } _buf = p; } |