summaryrefslogtreecommitdiff
path: root/ACE/ace/Service_Object.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-04-23 14:02:05 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-04-23 14:02:05 +0000
commitc76fdab7a31914db268f1cae52d44eb5300dfa69 (patch)
treed64648c14cfecebbfd74a98e33362da0e8b2d37f /ACE/ace/Service_Object.cpp
parent59f29f93ea3386dca51ac9f8980468bffc28ec48 (diff)
downloadATCD-c76fdab7a31914db268f1cae52d44eb5300dfa69.tar.gz
Wed Apr 23 14:01:32 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Service_Object.cpp')
-rw-r--r--ACE/ace/Service_Object.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ACE/ace/Service_Object.cpp b/ACE/ace/Service_Object.cpp
index cdc3672c774..11674885270 100644
--- a/ACE/ace/Service_Object.cpp
+++ b/ACE/ace/Service_Object.cpp
@@ -51,12 +51,12 @@ ACE_Service_Type::dump (void) const
ACE_Service_Type::ACE_Service_Type (const ACE_TCHAR *n,
ACE_Service_Type_Impl *t,
const ACE_DLL &dll,
- int active)
+ bool active)
: name_ (0),
type_ (t),
dll_ (dll),
active_ (active),
- fini_already_called_ (0)
+ fini_already_called_ (false)
{
ACE_TRACE ("ACE_Service_Type::ACE_Service_Type");
this->name (n);
@@ -65,11 +65,11 @@ ACE_Service_Type::ACE_Service_Type (const ACE_TCHAR *n,
ACE_Service_Type::ACE_Service_Type (const ACE_TCHAR *n,
ACE_Service_Type_Impl *t,
ACE_SHLIB_HANDLE handle,
- int active)
+ bool active)
: name_ (0),
type_ (t),
active_ (active),
- fini_already_called_ (0)
+ fini_already_called_ (false)
{
ACE_TRACE ("ACE_Service_Type::ACE_Service_Type");
this->dll_.set_handle (handle);
@@ -93,10 +93,10 @@ ACE_Service_Type::fini (void)
this->name_,
this->dll_.dll_name_));
- if (this->fini_already_called_)
+ if (!this->fini_already_called_)
return 0;
- this->fini_already_called_ = 1;
+ this->fini_already_called_ = true;
if (this->type_ == 0)
{
@@ -122,7 +122,7 @@ int
ACE_Service_Type::suspend (void) const
{
ACE_TRACE ("ACE_Service_Type::suspend");
- (const_cast<ACE_Service_Type *> (this))->active_ = 0;
+ (const_cast<ACE_Service_Type *> (this))->active_ = false;
return this->type_->suspend ();
}
@@ -130,7 +130,7 @@ int
ACE_Service_Type::resume (void) const
{
ACE_TRACE ("ACE_Service_Type::resume");
- (const_cast<ACE_Service_Type *> (this))->active_ = 1;
+ (const_cast<ACE_Service_Type *> (this))->active_ = true;
return this->type_->resume ();
}