summaryrefslogtreecommitdiff
path: root/ace/Dynamic_Service.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-07-16 00:02:20 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-07-16 00:02:20 +0000
commitfa9dec4cb57574944e626d18a54c025d965b2804 (patch)
tree6cbd7b0815e6e8b569b85d780a5054404307b675 /ace/Dynamic_Service.cpp
parenta669b219a74512dfd07ed7eddf68346241159b40 (diff)
downloadATCD-fa9dec4cb57574944e626d18a54c025d965b2804.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Dynamic_Service.cpp')
-rw-r--r--ace/Dynamic_Service.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/ace/Dynamic_Service.cpp b/ace/Dynamic_Service.cpp
index 37b466f9667..11ec24d28a0 100644
--- a/ace/Dynamic_Service.cpp
+++ b/ace/Dynamic_Service.cpp
@@ -31,24 +31,16 @@ ACE_Dynamic_Service<SERVICE>::instance (const char *name)
if (ACE_Service_Repository::instance ()->find (name,
&svc_rec) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ASYS_TEXT ("%p\n"),
- ASYS_TEXT ("find")),
- 0);
+ return 0;
const ACE_Service_Type_Impl *type = svc_rec->type ();
if (type == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- ASYS_TEXT ("%p\n"),
- ASYS_TEXT ("type")),
- 0);
+ return 0;
else
{
const void *obj = type->object ();
- // This should be an RTTI typesafe downcast...
- SERVICE *n = (SERVICE *) obj;
- return n;
+ return ACE_dynamic_cast (SERVICE *, obj);
}
}