style fix

This commit is contained in:
Guenter Obiltschnig
2016-08-27 08:34:46 +02:00
parent 63b3e23049
commit 7150a6da00

View File

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