summaryrefslogtreecommitdiff
path: root/sal/cpprt
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-20 12:00:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-20 12:14:46 +0100
commit46ce4f561dafeaab614e83653cba646885e8fd17 (patch)
tree7b1ccc412182a8521418a5ae12f0f961aca0cfd6 /sal/cpprt
parentce2147ec43c8116c801e9a83f81eea188c2a719e (diff)
Code clean up.
Diffstat (limited to 'sal/cpprt')
-rw-r--r--sal/cpprt/operators_new_delete.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sal/cpprt/operators_new_delete.cxx b/sal/cpprt/operators_new_delete.cxx
index e07d2ec57c7f..9561a893293f 100644
--- a/sal/cpprt/operators_new_delete.cxx
+++ b/sal/cpprt/operators_new_delete.cxx
@@ -49,8 +49,6 @@
#include <osl/diagnose.h>
#include <rtl/alloc.h>
-using std::nothrow_t;
-
// =======================================================================
// AllocatorTraits
// =======================================================================
@@ -158,8 +156,8 @@ static void* allocate (
// =======================================================================
-static void* allocate (
- std::size_t n, AllocatorTraits const & rTraits, std::nothrow_t const &)
+static void* allocate_nothrow (
+ std::size_t n, AllocatorTraits const & rTraits)
SAL_THROW(())
{
try
@@ -205,7 +203,7 @@ void SAL_CALL operator delete (void * p) throw ()
void* SAL_CALL operator new (std::size_t n, std::nothrow_t const &) throw ()
{
- return allocate (n, ScalarTraits(), nothrow_t());
+ return allocate_nothrow (n, ScalarTraits());
}
// =======================================================================
@@ -237,7 +235,7 @@ void SAL_CALL operator delete[] (void * p) throw ()
void* SAL_CALL operator new[] (std::size_t n, std::nothrow_t const &) throw ()
{
- return allocate (n, VectorTraits(), nothrow_t());
+ return allocate_nothrow (n, VectorTraits());
}
// =======================================================================