diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-06 18:12:33 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-06 18:12:33 +0200 |
commit | 54f5383fa3c74268081cdaa306d793935b40a658 (patch) | |
tree | df4ce12dba37018ea8a0d016da39605bdc0bf7ae /ACE/ace/Refcounted_Auto_Ptr.inl | |
parent | 0dc692d9bb9744d921361e655ad8a7d46c1daf16 (diff) | |
download | ATCD-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/Refcounted_Auto_Ptr.inl')
-rw-r--r-- | ACE/ace/Refcounted_Auto_Ptr.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/Refcounted_Auto_Ptr.inl b/ACE/ace/Refcounted_Auto_Ptr.inl index a0a29eaeb79..f4710b42688 100644 --- a/ACE/ace/Refcounted_Auto_Ptr.inl +++ b/ACE/ace/Refcounted_Auto_Ptr.inl @@ -37,8 +37,8 @@ ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK>::create (X *p) { // Yes set ref count to zero. ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK> *temp = internal_create (p); - if (temp == 0) - ACE_throw_bad_alloc; + if (!temp) + throw std::bad_alloc (); return temp; } |