diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-09-10 13:58:10 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-09-10 13:58:10 +0000 |
commit | b09f4b25c10c32739bef6bdc71ddc104472c7ea8 (patch) | |
tree | c53206b6e6e9296e97dde5b1479281dde8ec60eb /ACE/ace/DLL_Manager.cpp | |
parent | 1cb8a73e8c53356b7b259e249467a81ab40c756c (diff) | |
download | ATCD-b09f4b25c10c32739bef6bdc71ddc104472c7ea8.tar.gz |
Mon Sep 10 13:57:27 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/DLL.h:
* ace/DLL.cpp:
* ace/DLL_Manager.h:
* ace/DLL_Manager.cpp:
Use bool for become_owner
Diffstat (limited to 'ACE/ace/DLL_Manager.cpp')
-rw-r--r-- | ACE/ace/DLL_Manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ACE/ace/DLL_Manager.cpp b/ACE/ace/DLL_Manager.cpp index 4a25b321da3..01dc236a7ab 100644 --- a/ACE/ace/DLL_Manager.cpp +++ b/ACE/ace/DLL_Manager.cpp @@ -302,7 +302,7 @@ ACE_DLL_Handle::refcount (void) const } void * -ACE_DLL_Handle::symbol (const ACE_TCHAR *sym_name, int ignore_errors) +ACE_DLL_Handle::symbol (const ACE_TCHAR *sym_name, bool ignore_errors) { ACE_TRACE ("ACE_DLL_Handle::symbol"); ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->lock_, 0)); @@ -322,7 +322,7 @@ ACE_DLL_Handle::symbol (const ACE_TCHAR *sym_name, int ignore_errors) // error. So you should check the error message also, but since // null symbols won't do us much good anyway, let's still report // an error. - if (!sym && ignore_errors != 1) + if (!sym && !ignore_errors) { if (ACE::debug ()) ACE_ERROR ((LM_ERROR, @@ -339,12 +339,12 @@ ACE_DLL_Handle::symbol (const ACE_TCHAR *sym_name, int ignore_errors) } ACE_SHLIB_HANDLE -ACE_DLL_Handle::get_handle (int become_owner) +ACE_DLL_Handle::get_handle (bool become_owner) { ACE_TRACE ("ACE_DLL_Handle::get_handle"); ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->lock_, 0)); - if (this->refcount_ == 0 && become_owner != 0) + if (this->refcount_ == 0 && become_owner) { if (ACE::debug ()) ACE_ERROR ((LM_ERROR, @@ -356,7 +356,7 @@ ACE_DLL_Handle::get_handle (int become_owner) ACE_SHLIB_HANDLE handle = this->handle_; - if (become_owner != 0) + if (become_owner) { if (--this->refcount_ == 0) this->handle_ = ACE_SHLIB_INVALID_HANDLE; |