mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-05 20:07:23 +01:00
style fix
This commit is contained in:
parent
63b3e23049
commit
7150a6da00
@ -204,19 +204,19 @@ std::string PathImpl::expandImpl(const std::string& path)
|
||||
++it;
|
||||
if (it != end && *it == '/')
|
||||
{
|
||||
const char* homeEnv = getenv("HOME");
|
||||
if (homeEnv)
|
||||
{
|
||||
result += homeEnv;
|
||||
std::string::size_type resultSize = result.size();
|
||||
if (resultSize > 0 && result[resultSize - 1] != '/')
|
||||
result.append("/");
|
||||
}
|
||||
else
|
||||
{
|
||||
result += homeImpl();
|
||||
}
|
||||
++it;
|
||||
const char* homeEnv = getenv("HOME");
|
||||
if (homeEnv)
|
||||
{
|
||||
result += homeEnv;
|
||||
std::string::size_type resultSize = result.size();
|
||||
if (resultSize > 0 && result[resultSize - 1] != '/')
|
||||
result.append("/");
|
||||
}
|
||||
else
|
||||
{
|
||||
result += homeImpl();
|
||||
}
|
||||
++it;
|
||||
}
|
||||
else result += '~';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user