summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-03-05 00:21:25 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-03-05 00:21:25 +0100
commitb4a6673c488200a1a52fd2732566ed05a4bc0dbb (patch)
treebb9098258800aedf7d6a433d87186d59ee37d533 /methods
parentdeb0d61de51d2e30b224720a7c90ff7a6413a346 (diff)
fix "(performance) Possible inefficient checking for 'R' emptiness."
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 135771643..d2e03cfbc 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1327,7 +1327,7 @@ int HttpMethod::Loop()
after the same URI is seen twice in a queue item. */
StringVector &R = Redirected[Queue->DestFile];
bool StopRedirects = false;
- if (R.size() == 0)
+ if (R.empty() == true)
R.push_back(Queue->Uri);
else if (R[0] == "STOP" || R.size() > 10)
StopRedirects = true;