]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/aptconfiguration.h
merged the relevant bits from lp:~mvo/apt/lp346386
[apt.git] / apt-pkg / aptconfiguration.h
index 1f0399dd292ca75ffbe9b389bbde6ab6593ae5e5..e098d0fd6f4ea9d3921cd1cb0a77e9e128e9f5d8 100644 (file)
@@ -13,6 +13,7 @@
 // Include Files                                                       /*{{{*/
 #include <string>
 #include <vector>
+#include <limits>
                                                                        /*}}}*/
 namespace APT {
 class Configuration {                                                  /*{{{*/
@@ -94,7 +95,7 @@ public:                                                                       /*{{{*/
                Compressor(char const *name, char const *extension, char const *binary,
                           char const *compressArg, char const *uncompressArg,
                           unsigned short const cost);
-               Compressor() {};
+               Compressor() : Cost(std::numeric_limits<unsigned short>::max()) {};
        };
 
        /** \brief Return a vector of Compressors supported for data.tar's