X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1f2933a8de0f3a26f51b4a0a2112cbdfd4461e9b..cc26da01ef43686d67959ef080e5492410d20e4e:/apt-pkg/contrib/configuration.h diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index cbe18e4e5..71e5a0e47 100644 --- a/apt-pkg/contrib/configuration.h +++ b/apt-pkg/contrib/configuration.h @@ -72,8 +72,8 @@ class Configuration string Find(string const &Name, string const &Default) const {return Find(Name.c_str(),Default.c_str());}; string FindFile(const char *Name,const char *Default = 0) const; string FindDir(const char *Name,const char *Default = 0) const; - std::vector FindVector(string const &Name) const; std::vector FindVector(const char *Name) const; + std::vector FindVector(string const &Name) const { return FindVector(Name.c_str()); }; int FindI(const char *Name,int const &Default = 0) const; int FindI(string const &Name,int const &Default = 0) const {return FindI(Name.c_str(),Default);}; bool FindB(const char *Name,bool const &Default = false) const; @@ -109,6 +109,7 @@ class Configuration class MatchAgainstConfig { std::vector patterns; + void clearPatterns(); public: MatchAgainstConfig(char const * Config);