summaryrefslogtreecommitdiff
path: root/src/ContentTypeRequestGroupCriteria.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-01-11 01:17:51 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-01-11 01:17:51 +0900
commitb6fd4366fece7a83e19973a40ed19e36b1dca92a (patch)
treebef92ab27b7ca394b14d9ca7e4321c2040e2b867 /src/ContentTypeRequestGroupCriteria.cc
parent9331f6a43d2178b0b718d8b81db81ea10b4d5d3b (diff)
Use short form of util::startsWith and util::endsWith
Diffstat (limited to 'src/ContentTypeRequestGroupCriteria.cc')
-rw-r--r--src/ContentTypeRequestGroupCriteria.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ContentTypeRequestGroupCriteria.cc b/src/ContentTypeRequestGroupCriteria.cc
index b61c3bb7..078ef7df 100644
--- a/src/ContentTypeRequestGroupCriteria.cc
+++ b/src/ContentTypeRequestGroupCriteria.cc
@@ -49,8 +49,7 @@ bool tailMatch
(InputIterator first, InputIterator last, const std::string& target)
{
for(; first != last; ++first) {
- if(util::endsWith(target.begin(), target.end(),
- (*first).begin(), (*first).end())) {
+ if(util::endsWith(target, *first)) {
return true;
}
}