summaryrefslogtreecommitdiff
path: root/apt-pkg/packageset.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-05-31 14:16:44 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-05-31 14:16:44 +0200
commit6e235c6640cdc6cb9a8c3eaa1e65a6141f463676 (patch)
tree995cfb0b4d6cfb3e4ef9a6120cad12f43312948d /apt-pkg/packageset.h
parent4c265635a8417b857a3a8f537c74313d5533da9b (diff)
improve the handling of regex together with the architecture modifier
Diffstat (limited to 'apt-pkg/packageset.h')
-rw-r--r--apt-pkg/packageset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/packageset.h b/apt-pkg/packageset.h
index 0bd60c56b..9f80d60ed 100644
--- a/apt-pkg/packageset.h
+++ b/apt-pkg/packageset.h
@@ -64,8 +64,8 @@ public: /*{{{*/
\param Cache the packages are in
\param pattern regular expression for package names
\param out stream to print the notice to */
- static APT::PackageSet FromRegEx(pkgCache &Cache, const char *pattern, std::ostream &out);
- static APT::PackageSet FromRegEx(pkgCache &Cache, const char *pattern) {
+ static APT::PackageSet FromRegEx(pkgCache &Cache, std::string pattern, std::ostream &out);
+ static APT::PackageSet FromRegEx(pkgCache &Cache, std::string const &pattern) {
std::ostream out (std::ofstream("/dev/null").rdbuf());
return APT::PackageSet::FromRegEx(Cache, pattern, out);
}