diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-09-01 23:57:17 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-09-01 23:57:17 +0000 |
commit | e8433cc17941d760f8ec96c6f280e152e4f00ef0 (patch) | |
tree | 7a788e52e18bfb377bacbe2cf4660c98cf6486e4 /lldb/source/Utility/UriParser.cpp | |
parent | 11deaae8a132906a0acdfa0d5801c5dd1b557b81 (diff) | |
download | bcm5719-llvm-e8433cc17941d760f8ec96c6f280e152e4f00ef0.tar.gz bcm5719-llvm-e8433cc17941d760f8ec96c6f280e152e4f00ef0.zip |
Simplify find_first_of & find_last_of on single char.
Summary:
When calling find_first_of and find_last_of on a single character,
we can instead just call find / rfind and make our intent more
clear.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D12518
llvm-svn: 246609
Diffstat (limited to 'lldb/source/Utility/UriParser.cpp')
-rw-r--r-- | lldb/source/Utility/UriParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/UriParser.cpp b/lldb/source/Utility/UriParser.cpp index 6febae2b17b..77e16b02aae 100644 --- a/lldb/source/Utility/UriParser.cpp +++ b/lldb/source/Utility/UriParser.cpp @@ -40,7 +40,7 @@ UriParser::Parse(const std::string& uri, // Extract path. tmp_scheme = uri.substr(0, pos); auto host_pos = pos + strlen(kSchemeSep); - auto path_pos = uri.find_first_of("/", host_pos); + auto path_pos = uri.find('/', host_pos); if (path_pos != std::string::npos) tmp_path = uri.substr(path_pos); else |