mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-27 01:14:44 +01:00
style fix
This commit is contained in:
@@ -114,19 +114,19 @@ std::string PathImpl::expandImpl(const std::string& path)
|
|||||||
++it;
|
++it;
|
||||||
if (it != end && *it == '/')
|
if (it != end && *it == '/')
|
||||||
{
|
{
|
||||||
const char* homeEnv = getenv("HOME");
|
const char* homeEnv = getenv("HOME");
|
||||||
if (homeEnv)
|
if (homeEnv)
|
||||||
{
|
{
|
||||||
result += homeEnv;
|
result += homeEnv;
|
||||||
std::string::size_type resultSize = result.size();
|
std::string::size_type resultSize = result.size();
|
||||||
if (resultSize > 0 && result[resultSize - 1] != '/')
|
if (resultSize > 0 && result[resultSize - 1] != '/')
|
||||||
result.append("/");
|
result.append("/");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result += homeImpl();
|
result += homeImpl();
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
else result += '~';
|
else result += '~';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user