diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 18:19:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-17 18:19:06 +0000 |
commit | d53f3c864bf94d158a2ae677fe92fd41afaec2f3 (patch) | |
tree | 43c0e82f0d0d92603b1644e09b46732a5f153bde /include/llvm/Support/FileSystem.h | |
parent | 090100fdb166e87bc539e3e4048d18c721c187d0 (diff) |
Pass StringRefs by value, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 5263d32153..2a2daaeced 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -604,10 +604,10 @@ class directory_iterator { directory_entry CurrentEntry; // Platform implementations implement these functions to handle iteration. - friend error_code directory_iterator_construct(directory_iterator& it, - const StringRef &path); - friend error_code directory_iterator_increment(directory_iterator& it); - friend error_code directory_iterator_destruct(directory_iterator& it); + friend error_code directory_iterator_construct(directory_iterator &it, + StringRef path); + friend error_code directory_iterator_increment(directory_iterator &it); + friend error_code directory_iterator_destruct(directory_iterator &it); public: explicit directory_iterator(const Twine &path, error_code &ec) |