summaryrefslogtreecommitdiff
path: root/apt-pkg/packageset.h
diff options
context:
space:
mode:
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);
}