summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Profile.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-08-14 13:02:28 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-08-14 13:02:28 +0000
commit81158a131d00a0f6524b4f425009df269332bc9b (patch)
treea7565882ddb955901bf3a1192eebfc71fde48bc4 /TAO/tao/IIOP_Profile.cpp
parente434992dac9c196cef46626ab5eac13ad3970dda (diff)
downloadATCD-81158a131d00a0f6524b4f425009df269332bc9b.tar.gz
Mon Aug 14 12:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/IIOP_Profile.cpp')
-rw-r--r--TAO/tao/IIOP_Profile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/IIOP_Profile.cpp b/TAO/tao/IIOP_Profile.cpp
index bd86fd5ffc3..f8b0242bed0 100644
--- a/TAO/tao/IIOP_Profile.cpp
+++ b/TAO/tao/IIOP_Profile.cpp
@@ -456,7 +456,7 @@ TAO_IIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
1 /* colon separator */ +
1 /* object key separator */ +
ACE_OS::strlen (key.in ()));
- size_t pfx_len = (
+ size_t const pfx_len = (
ACE_OS::strlen (::the_prefix) /* "iiop" */ +
1 /* colon separator */);
@@ -547,8 +547,8 @@ TAO_IIOP_Profile::create_profile_body (TAO_OutputCDR &encap) const
#if defined (ACE_HAS_IPV6)
// For IPv6 decimal addresses make sure the possibly included scopeid
// is not published as this has only local meaning.
- const char* host;
- const char* pos;
+ const char* host = 0;
+ const char* pos = 0;
if (this->endpoint_.is_ipv6_decimal_ &&
(pos = ACE_OS::strchr (host = this->endpoint_.host (), '%')) != 0)
{
@@ -606,8 +606,8 @@ TAO_IIOP_Profile::encode_alternate_endpoints (void)
#if defined (ACE_HAS_IPV6)
// For IPv6 decimal addresses make sure the possibly included scopeid
// is not published as this has only local meaning.
- const char* host;
- const char* pos;
+ const char* host = 0;
+ const char* pos = 0;
if (endpoint->is_ipv6_decimal_ &&
(pos = ACE_OS::strchr (host = endpoint->host (), '%')) != 0)
{