Index: base/file_path.cc |
=================================================================== |
--- base/file_path.cc (revision 7571) |
+++ base/file_path.cc (working copy) |
@@ -113,7 +113,7 @@ |
return new_path; |
} |
-FilePath::StringType FilePath::BaseName() const { |
+FilePath FilePath::BaseName() const { |
FilePath new_path(path_); |
new_path.StripTrailingSeparatorsInternal(); |
@@ -133,7 +133,7 @@ |
new_path.path_.erase(0, last_separator + 1); |
} |
- return new_path.path_; |
+ return new_path; |
} |
FilePath FilePath::Append(const FilePath::StringType& component) const { |