summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpEndpoint.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-22 17:07:43 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-22 17:07:43 +0000
commitee9134f129672068403f488e9a326411ca9cc1b1 (patch)
tree5bd03a07398ed4ffd2fc8d929ab4a0ce97a843a1 /cpp/src/Ice/TcpEndpoint.cpp
parentfixes (diff)
downloadice-ee9134f129672068403f488e9a326411ca9cc1b1.tar.bz2
ice-ee9134f129672068403f488e9a326411ca9cc1b1.tar.xz
ice-ee9134f129672068403f488e9a326411ca9cc1b1.zip
removed several static's
Diffstat (limited to 'cpp/src/Ice/TcpEndpoint.cpp')
-rw-r--r--cpp/src/Ice/TcpEndpoint.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/Ice/TcpEndpoint.cpp b/cpp/src/Ice/TcpEndpoint.cpp
index 8faec7c0648..71cc62db29e 100644
--- a/cpp/src/Ice/TcpEndpoint.cpp
+++ b/cpp/src/Ice/TcpEndpoint.cpp
@@ -35,7 +35,7 @@ IceInternal::TcpEndpoint::TcpEndpoint(const InstancePtr& instance, const string&
_port(0),
_timeout(-1)
{
- static const string delim = " \t\n\r";
+ const string delim = " \t\n\r";
string::size_type beg;
string::size_type end = 0;
@@ -354,11 +354,10 @@ IceInternal::TcpEndpointFactory::type() const
return TcpEndpointType;
}
-const string&
+string
IceInternal::TcpEndpointFactory::protocol() const
{
- const static string result = "tcp";
- return result;
+ return "tcp";
}
EndpointPtr