Misc fixes from internal integration / clang tidy.

Change-Id: Ic5e8f6a423b426abb9f8b90d39db0f85f28b94be
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2018-02-08 14:56:16 -08:00
parent 6a1acdc23b
commit b513db86c7
7 changed files with 21 additions and 23 deletions

View File

@@ -231,6 +231,10 @@ inline std::string ConCatPathFileName(const std::string &path,
}
}
filepath += filename;
// Ignore './' at the start of filepath.
if (filepath[0] == '.' && filepath[1] == kPathSeparator) {
filepath.erase(0, 2);
}
return filepath;
}