]> git.saurik.com Git - apt.git/commitdiff
fix "(performance) Possible inefficient checking for 'R' emptiness."
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 4 Mar 2012 23:21:25 +0000 (00:21 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 4 Mar 2012 23:21:25 +0000 (00:21 +0100)
methods/http.cc

index 13577164303c5d1405cb2803450199e2eb90a94b..d2e03cfbc13352c295e13080d38c3f20a8beed73 100644 (file)
@@ -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;