diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 18:59:06 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 18:59:06 +0000 |
commit | b99d1d095511a476dce58a230666b11ab9debcb3 (patch) | |
tree | 1ef44c5bbf6c3d077365a791369bc87a776f4b4e /base/file_path.h | |
parent | 71dabc3a72ed3871a2a2a948a16103ba25eab056 (diff) | |
download | chromium_src-b99d1d095511a476dce58a230666b11ab9debcb3.zip chromium_src-b99d1d095511a476dce58a230666b11ab9debcb3.tar.gz chromium_src-b99d1d095511a476dce58a230666b11ab9debcb3.tar.bz2 |
Make FilePath::Append accept FilePath parameter. Patch by Paweł Hajdan jr
<phajdan.jr@gmail.com>
http://codereview.chromium.org/12907
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.h')
-rw-r--r-- | base/file_path.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/base/file_path.h b/base/file_path.h index fc55a7a..fb2cc57 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -146,6 +146,7 @@ class FilePath { // only to |component| is returned. |component| must be a relative path; // it is an error to pass an absolute path. FilePath Append(const StringType& component) const WARN_UNUSED_RESULT; + FilePath Append(const FilePath& component) const WARN_UNUSED_RESULT; // Returns true if this FilePath contains an absolute path. On Windows, an // absolute path begins with either a drive letter specification followed by @@ -168,13 +169,6 @@ class FilePath { std::wstring ToWStringHack() const; private: - // If this FilePath contains a drive letter specification, returns the - // position of the last character of the drive letter specification, - // otherwise returns npos. This can only be true on Windows, when a pathname - // begins with a letter followed by a colon. On other platforms, this always - // returns npos. - StringType::size_type FindDriveLetter() const; - // Remove trailing separators from this object. If the path is absolute, it // will never be stripped any more than to refer to the absolute root // directory, so "////" will become "/", not "". A leading pair of |