diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-01-11 01:17:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-01-11 01:17:51 +0900 |
| commit | b6fd4366fece7a83e19973a40ed19e36b1dca92a (patch) | |
| tree | bef92ab27b7ca394b14d9ca7e4321c2040e2b867 /src/AuthConfigFactory.cc | |
| parent | 9331f6a43d2178b0b718d8b81db81ea10b4d5d3b (diff) | |
Use short form of util::startsWith and util::endsWith
Diffstat (limited to 'src/AuthConfigFactory.cc')
| -rw-r--r-- | src/AuthConfigFactory.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/AuthConfigFactory.cc b/src/AuthConfigFactory.cc index e8450269..a9922f54 100644 --- a/src/AuthConfigFactory.cc +++ b/src/AuthConfigFactory.cc @@ -253,8 +253,7 @@ AuthConfigFactory::findBasicCred std::lower_bound(basicCreds_.begin(), basicCreds_.end(), bc); for(; i != basicCreds_.end() && (*i).host_ == host && (*i).port_ == port; ++i) { - if(util::startsWith(bc.path_.begin(), bc.path_.end(), - (*i).path_.begin(), (*i).path_.end())) { + if(util::startsWith(bc.path_, (*i).path_)) { return i; } } |
