]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/vendor.cc
Allow override of Proxy-Auto-Detect by the users configuration
[apt.git] / apt-pkg / vendor.cc
index 2350afe693f2d1ca3ac47a0f1fcfd7e3f1b4671b..d4add560e7869e38608d69ed19c34aadf9c4deee 100644 (file)
@@ -1,8 +1,14 @@
-#include <iostream>
-#include <apt-pkg/error.h>
+#include<config.h>
+
 #include <apt-pkg/vendor.h>
 #include <apt-pkg/configuration.h>
 
+#include <iostream>
+#include <map>
+#include <string>
+#include <utility>
+#include <vector>
+
 Vendor::Vendor(std::string VendorID,
                std::string Origin,
               std::vector<struct Vendor::Fingerprint *> *FingerprintList)
@@ -10,7 +16,7 @@ Vendor::Vendor(std::string VendorID,
    this->VendorID = VendorID;
    this->Origin = Origin;
    for (std::vector<struct Vendor::Fingerprint *>::iterator I = FingerprintList->begin();
-       I != FingerprintList->end(); I++)
+       I != FingerprintList->end(); ++I)
    {
       if (_config->FindB("Debug::Vendor", false))
          std::cerr << "Vendor \"" << VendorID << "\": Mapping \""
@@ -20,16 +26,16 @@ Vendor::Vendor(std::string VendorID,
    delete FingerprintList;
 }
 
-const string Vendor::LookupFingerprint(string Print) const
+const std::string Vendor::LookupFingerprint(std::string Print) const
 {
-   std::map<string,string>::const_iterator Elt = Fingerprints.find(Print);
+   std::map<std::string,std::string>::const_iterator Elt = Fingerprints.find(Print);
    if (Elt == Fingerprints.end())
       return "";
    else
       return (*Elt).second;
 }
 
-bool Vendor::CheckDist(string Dist)
+APT_CONST bool Vendor::CheckDist(std::string /*Dist*/)
 {
    return true;
 }