Merge pull request #6399 from dumganhar/v3

fullPathForFilename optimization: Checking whether the path is an empty string.
This commit is contained in:
James Chen 2014-04-28 14:56:01 +08:00
commit 35207fd8ba
1 changed files with 5 additions and 0 deletions

View File

@ -680,6 +680,11 @@ std::string FileUtils::getPathForFilename(const std::string& filename, const std
std::string FileUtils::fullPathForFilename(const std::string &filename)
{
if (filename.empty())
{
return "";
}
if (isAbsolutePath(filename))
{
return filename;