summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Activator.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-08-01 10:09:48 -0400
committerBernard Normier <bernard@zeroc.com>2016-08-01 10:09:48 -0400
commit4aa7ae5129a9cb66f5ea26165310e96603af576c (patch)
treef8ee6859ad547b59cc28eadb1212f403f51dfff7 /cpp/src/IceGrid/Activator.cpp
parentDo not initialize OpenSSL locks if already done by other library. (diff)
downloadice-4aa7ae5129a9cb66f5ea26165310e96603af576c.tar.bz2
ice-4aa7ae5129a9cb66f5ea26165310e96603af576c.tar.xz
ice-4aa7ae5129a9cb66f5ea26165310e96603af576c.zip
Move StringConverter API to namespace Ice
Diffstat (limited to 'cpp/src/IceGrid/Activator.cpp')
-rw-r--r--cpp/src/IceGrid/Activator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/Activator.cpp b/cpp/src/IceGrid/Activator.cpp
index cdb5ed64c03..afcca9685e5 100644
--- a/cpp/src/IceGrid/Activator.cpp
+++ b/cpp/src/IceGrid/Activator.cpp
@@ -389,7 +389,7 @@ Activator::activate(const string& name,
// IceGrid doesn't support to use string converters, so don't need to use
// any string converter in wstringToString conversions.
//
- if(SearchPathW(NULL, IceUtil::stringToWstring(path).c_str(), ext.c_str(), _MAX_PATH, absbuf, &fPart) == 0)
+ if(SearchPathW(NULL, stringToWstring(path).c_str(), ext.c_str(), _MAX_PATH, absbuf, &fPart) == 0)
{
if(_traceLevels->activator > 0)
{
@@ -398,7 +398,7 @@ Activator::activate(const string& name,
}
throw string("Couldn't find `" + path + "' executable.");
}
- path = IceUtil::wstringToString(absbuf);
+ path = wstringToString(absbuf);
}
else if(!pwd.empty())
{
@@ -416,7 +416,7 @@ Activator::activate(const string& name,
if(!pwd.empty())
{
wchar_t absbuf[_MAX_PATH];
- if(_wfullpath(absbuf, IceUtil::stringToWstring(pwd).c_str(), _MAX_PATH) == NULL)
+ if(_wfullpath(absbuf, stringToWstring(pwd).c_str(), _MAX_PATH) == NULL)
{
if(_traceLevels->activator > 0)
{
@@ -425,7 +425,7 @@ Activator::activate(const string& name,
}
throw string("The server working directory path `" + pwd + "' can't be converted into an absolute path.");
}
- pwd = IceUtil::wstringToString(absbuf);
+ pwd = wstringToString(absbuf);
}
#endif
@@ -504,13 +504,13 @@ Activator::activate(const string& name,
// IceGrid doesn't support to use string converters, so don't need to use
// any string converter in stringToWstring conversions.
//
- wstring wpwd = IceUtil::stringToWstring(pwd);
+ wstring wpwd = stringToWstring(pwd);
const wchar_t* dir = !wpwd.empty() ? wpwd.c_str() : NULL;
//
// Make a copy of the command line.
//
- wchar_t* cmdbuf = _wcsdup(IceUtil::stringToWstring(cmd).c_str());
+ wchar_t* cmdbuf = _wcsdup(stringToWstring(cmd).c_str());
//
// Create the environment block for the child process. We start with the environment
@@ -554,7 +554,7 @@ Activator::activate(const string& name,
// IceGrid doesn't support to use string converters, so don't need to use
// any string converter in stringToWstring conversions.
//
- wstring s = IceUtil::stringToWstring(*p);
+ wstring s = stringToWstring(*p);
wstring::size_type pos = s.find(L'=');
if(pos != wstring::npos)
{