style fix

This commit is contained in:
Guenter Obiltschnig
2016-08-27 08:31:32 +02:00
parent b5b6135f94
commit 88c74fdf44

View File

@@ -114,19 +114,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 += '~';
}