summaryrefslogtreecommitdiff
path: root/TAO/tao/Strategies/DIOP_Profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Strategies/DIOP_Profile.cpp')
-rw-r--r--TAO/tao/Strategies/DIOP_Profile.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/TAO/tao/Strategies/DIOP_Profile.cpp b/TAO/tao/Strategies/DIOP_Profile.cpp
index af1c9aabad4..19c9432b3a0 100644
--- a/TAO/tao/Strategies/DIOP_Profile.cpp
+++ b/TAO/tao/Strategies/DIOP_Profile.cpp
@@ -1,7 +1,6 @@
-// This may look like C, but it's really -*- C++ -*-
-//
// $Id$
-#include "DIOP_Profile.h"
+
+#include "tao/Strategies/DIOP_Profile.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
@@ -20,7 +19,9 @@ ACE_RCSID (Strategies,
DIOP_Profile,
"$Id$")
-static const char prefix_[] = "diop";
+static const char the_prefix[] = "diop";
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const char TAO_DIOP_Profile::object_key_delimiter_ = '/';
@@ -296,7 +297,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
size_t buflen = (8 /* "corbaloc" */ +
1 /* colon separator */ +
- ACE_OS::strlen (::prefix_) +
+ ACE_OS::strlen (::the_prefix) +
1 /* colon separator */ +
1 /* major version */ +
1 /* decimal point */ +
@@ -314,7 +315,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_OS::sprintf (buf,
"corbaloc:%s:%c.%c@%s:%d%c%s",
- ::prefix_,
+ ::the_prefix,
digits [this->version_.major],
digits [this->version_.minor],
this->endpoint_.host (),
@@ -328,7 +329,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
const char *
TAO_DIOP_Profile::prefix (void)
{
- return ::prefix_;
+ return ::the_prefix;
}
void
@@ -472,4 +473,6 @@ TAO_DIOP_Profile::decode_endpoints (void)
return 0;
}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */