diff options
Diffstat (limited to 'TAO/tao/IIOP_Factory.cpp')
-rw-r--r-- | TAO/tao/IIOP_Factory.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/tao/IIOP_Factory.cpp b/TAO/tao/IIOP_Factory.cpp index 852fde2c935..8f2baeba879 100644 --- a/TAO/tao/IIOP_Factory.cpp +++ b/TAO/tao/IIOP_Factory.cpp @@ -11,7 +11,9 @@ ACE_RCSID (tao, "$Id$") -static const char prefix_[] = "iiop"; +static const char the_prefix[] = "iiop"; + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory (void) : TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP), @@ -28,13 +30,13 @@ int TAO_IIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix) { // Check for the proper prefix for this protocol. - return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0); + return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0); } const char * TAO_IIOP_Protocol_Factory::prefix (void) const { - return ::prefix_; + return ::the_prefix; } char @@ -79,6 +81,8 @@ TAO_IIOP_Protocol_Factory::requires_explicit_endpoint (void) const return 0; } +TAO_END_VERSIONED_NAMESPACE_DECL + ACE_STATIC_SVC_DEFINE (TAO_IIOP_Protocol_Factory, ACE_TEXT ("IIOP_Factory"), ACE_SVC_OBJ_T, |