diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-10-03 19:38:24 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-10-03 19:38:24 +0000 |
commit | 7a96a0d98d9bc982ef3964a8bfd69913a3ca4373 (patch) | |
tree | 71bb43af2b5138b239bf793029785076922d9ac2 /ACE/ace/Service_Repository.cpp | |
parent | 120546b69ce995607de011978e2b0ba51b073cda (diff) | |
download | ATCD-7a96a0d98d9bc982ef3964a8bfd69913a3ca4373.tar.gz |
Wed Oct 3 19:31:15 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Service_Repository.cpp')
-rw-r--r-- | ACE/ace/Service_Repository.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/Service_Repository.cpp b/ACE/ace/Service_Repository.cpp index 422b22b4d70..1ae307607b2 100644 --- a/ACE/ace/Service_Repository.cpp +++ b/ACE/ace/Service_Repository.cpp @@ -27,7 +27,7 @@ ACE_Service_Repository *ACE_Service_Repository::svc_rep_ = 0; // Controls whether the Service_Repository is deleted when we shut // down (we can only delete it safely if we created it)! -int ACE_Service_Repository::delete_svc_rep_ = 0; +bool ACE_Service_Repository::delete_svc_rep_ = false; void ACE_Service_Repository::dump (void) const @@ -63,7 +63,7 @@ ACE_Service_Repository::instance (size_t size /* = ACE_Service_Repository::DEFAU ACE_NEW_RETURN (ACE_Service_Repository::svc_rep_, ACE_Service_Repository (size), 0); - ACE_Service_Repository::delete_svc_rep_ = 1; + ACE_Service_Repository::delete_svc_rep_ = true; } } } @@ -80,7 +80,7 @@ ACE_Service_Repository::instance (ACE_Service_Repository *s) ACE_Service_Repository *t = ACE_Service_Repository::svc_rep_; // We can't safely delete it since we don't know who created it! - ACE_Service_Repository::delete_svc_rep_ = 0; + ACE_Service_Repository::delete_svc_rep_ = false; ACE_Service_Repository::svc_rep_ = s; return t; @@ -98,7 +98,7 @@ ACE_Service_Repository::close_singleton (void) { delete ACE_Service_Repository::svc_rep_; ACE_Service_Repository::svc_rep_ = 0; - ACE_Service_Repository::delete_svc_rep_ = 0; + ACE_Service_Repository::delete_svc_rep_ = false; } } |