From: David Kalnischkies Date: Sun, 27 Feb 2011 13:30:50 +0000 (+0100) Subject: d'uh! implement and not only declare the string wrapper for FindVector X-Git-Tag: 0.8.12~4^2~8 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/31273d9ff4fa1a6e073168e9cbaa91d1f53be853?hp=--cc d'uh! implement and not only declare the string wrapper for FindVector --- 31273d9ff4fa1a6e073168e9cbaa91d1f53be853 diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index 175c1bef3..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;