summaryrefslogtreecommitdiff
path: root/ACE/ace/Bound_Ptr.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-06-06 18:12:33 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-06-06 18:12:33 +0200
commit54f5383fa3c74268081cdaa306d793935b40a658 (patch)
treedf4ce12dba37018ea8a0d016da39605bdc0bf7ae /ACE/ace/Bound_Ptr.inl
parent0dc692d9bb9744d921361e655ad8a7d46c1daf16 (diff)
downloadATCD-54f5383fa3c74268081cdaa306d793935b40a658.tar.gz
Instead of ACE_throw_bad_alloc throw std::badalloc directly
* ACE/ace/Bound_Ptr.inl: * ACE/ace/Future.cpp: * ACE/ace/OS_Memory.h: * ACE/ace/Refcounted_Auto_Ptr.inl: * ACE/ace/Svc_Handler.cpp:
Diffstat (limited to 'ACE/ace/Bound_Ptr.inl')
-rw-r--r--ACE/ace/Bound_Ptr.inl8
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/Bound_Ptr.inl b/ACE/ace/Bound_Ptr.inl
index b9c68ec6f8d..5a7de11982a 100644
--- a/ACE/ace/Bound_Ptr.inl
+++ b/ACE/ace/Bound_Ptr.inl
@@ -18,8 +18,8 @@ ACE_Bound_Ptr_Counter<ACE_LOCK>::create_strong ()
{
// Set initial object reference count to 1.
ACE_Bound_Ptr_Counter<ACE_LOCK> *temp = internal_create (1);
- if (temp == 0)
- ACE_throw_bad_alloc;
+ if (!temp)
+ throw std::bad_alloc ();
return temp;
}
@@ -73,8 +73,8 @@ ACE_Bound_Ptr_Counter<ACE_LOCK>::create_weak ()
// Set initial object reference count to 0.
ACE_Bound_Ptr_Counter<ACE_LOCK> *temp = internal_create (0);
- if (temp == 0)
- ACE_throw_bad_alloc;
+ if (!temp)
+ throw std::bad_alloc ();
return temp;
}