summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ProxyFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ProxyFactory.cpp')
-rw-r--r--cpp/src/Ice/ProxyFactory.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp
index 9b397c36527..aeca6d1a091 100644
--- a/cpp/src/Ice/ProxyFactory.cpp
+++ b/cpp/src/Ice/ProxyFactory.cpp
@@ -32,14 +32,13 @@ IceInternal::ProxyFactory::stringToProxy(const string& str) const
string
IceInternal::ProxyFactory::proxyToString(const ObjectPrx& proxy) const
{
- static const string nilProxy("");
if(proxy)
{
return proxy->__reference()->toString();
}
else
{
- return nilProxy;
+ return "";
}
}
@@ -99,7 +98,7 @@ IceInternal::ProxyFactory::ProxyFactory(const InstancePtr& instance) :
while(true)
{
- static const string delim = " \t";
+ const string delim = " \t";
beg = str.find_first_not_of(delim, end);
if(beg == string::npos)