From 7041ab5d41644bc3310b5c16b9c0aa3818a03d10 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 16 Mar 2011 14:06:26 +0200 Subject: skeleton for events handler functions return type correction --- core/services.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/services.cpp') diff --git a/core/services.cpp b/core/services.cpp index 06e060c..42f8fb8 100644 --- a/core/services.cpp +++ b/core/services.cpp @@ -20,7 +20,7 @@ extern std::list services; extern boost::mutex service_list_mutex; -int ServiceExists(const char *name); +bool ServiceExists(const char *name); void CreateServiceFunction(const char* name, SERVICE svc) { if(!ServiceExists(name)) @@ -42,7 +42,7 @@ void* CallService(const char *name,void* data) } return 0; } -int ServiceExists(const char *name) +bool ServiceExists(const char *name) { service_list_mutex.lock(); if(!services.empty()) @@ -50,10 +50,10 @@ int ServiceExists(const char *name) std::list::iterator end = services.end(); for(std::list::iterator i = services.begin(); i != end; ++i) if(!ACE_OS::strcmp((*i)->getName(), name)) - return 1; + return true; } service_list_mutex.unlock(); - return 0; + return false; } service::service(const char* name, SERVICE svc) -- cgit v1.2.3